Skip to content

Commit 6258289

Browse files
committed
Fix configuration issues.
1 parent fcaa8d5 commit 6258289

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Configuration implements ConfigurationInterface
1919
public function getConfigTreeBuilder()
2020
{
2121
$treeBuilder = new TreeBuilder();
22-
$rootNode = $treeBuilder->root('tmdb');
22+
$rootNode = $treeBuilder->root('tmdb_symfony');
2323

2424
$rootNode
2525
->children()
@@ -43,7 +43,7 @@ public function getConfigTreeBuilder()
4343
->arrayNode('log')
4444
->canBeEnabled()
4545
->children()
46-
->scalarNode('level')->defaultValue(Logger::DEBUG)->end()
46+
->scalarNode('level')->defaultValue('DEBUG')->end()
4747
->scalarNode('path')->defaultValue('%kernel.logs_dir%/themoviedb.log')->end()
4848
->scalarNode('handler')->defaultValue(null)->end()
4949
->scalarNode('subscriber')->defaultValue(null)->end()

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Register the bundle in `app/AppKernel.php`:
3535
Add to your `app/config/config.yml` the following:
3636

3737
```yaml
38-
tmdb:
38+
tmdb_symfony:
3939
api_key: YOUR_API_KEY_HERE
4040
```
4141
@@ -47,7 +47,7 @@ This caching system will adhere to the TMDB API max-age values, if you have diff
4747
you'd have to make your own implementation. We would be happy to intergrate more options, so please contribute.
4848
4949
```yaml
50-
tmdb:
50+
tmdb_symfony:
5151
api_key: YOUR_API_KEY_HERE
5252
cache:
5353
enabled: true
@@ -62,7 +62,7 @@ __Don't need the repositories?__
6262
You can disable repositories :
6363

6464
```yaml
65-
tmdb:
65+
tmdb_symfony:
6666
api_key: YOUR_API_KEY_HERE
6767
repositories:
6868
enabled: false
@@ -73,7 +73,7 @@ __Don't need the twig extension?__
7373
You can disable the twig extension :
7474
7575
```yaml
76-
tmdb:
76+
tmdb_symfony:
7777
api_key: YOUR_API_KEY_HERE
7878
twig_extension:
7979
enabled: false

Resources/config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
yeah<?xml version="1.0" ?>
1+
<?xml version="1.0" ?>
22

33
<container xmlns="http://symfony.com/schema/dic/services"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

0 commit comments

Comments
 (0)