Skip to content

Commit

Permalink
remove deprecated parameter 'kernel.root_dir'
Browse files Browse the repository at this point in the history
  • Loading branch information
artemdigi committed May 16, 2019
1 parent c0d67eb commit 6d93a12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getConfigTreeBuilder()
->end()
->defaultNull()
->end()
->scalarNode('web_dir')->defaultValue('%kernel.root_dir%/../web')->end()
->scalarNode('web_dir')->defaultValue('%kernel.project_dir%/web')->end()
->enumNode('mode')
->values(array(CacheClearerService::MODE_FOPEN, CacheClearerService::MODE_CURL))
->defaultValue(CacheClearerService::MODE_FOPEN)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function registerBundles()
# app/config/config.yml
accelerator_cache:
host: http://example.com
web_dir: %kernel.root_dir%/../web
web_dir: %kernel.project_dir%/web
```
4. If you want to use curl rather than fopen set the following option:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testDefaults()
$this->load();

$this->assertContainerBuilderHasParameter('accelerator_cache.host', '%router.request_context.scheme%://%router.request_context.host%');
$this->assertContainerBuilderHasParameter('accelerator_cache.web_dir', '%kernel.root_dir%/../web');
$this->assertContainerBuilderHasParameter('accelerator_cache.web_dir', '%kernel.project_dir%/web');
$this->assertContainerBuilderHasParameter('accelerator_cache.template');
$this->assertContains('die(json_encode(AcceleratorCacheClearer::clearCache(%%user%%, %%opcode%%)));', $this->container->getParameter('accelerator_cache.template'));
$this->assertContainerBuilderHasParameter('accelerator_cache.mode', 'fopen');
Expand Down

0 comments on commit 6d93a12

Please sign in to comment.