Skip to content

Commit 6d93a12

Browse files
committed
remove deprecated parameter 'kernel.root_dir'
1 parent c0d67eb commit 6d93a12

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function getConfigTreeBuilder()
2424
->end()
2525
->defaultNull()
2626
->end()
27-
->scalarNode('web_dir')->defaultValue('%kernel.root_dir%/../web')->end()
27+
->scalarNode('web_dir')->defaultValue('%kernel.project_dir%/web')->end()
2828
->enumNode('mode')
2929
->values(array(CacheClearerService::MODE_FOPEN, CacheClearerService::MODE_CURL))
3030
->defaultValue(CacheClearerService::MODE_FOPEN)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function registerBundles()
5555
# app/config/config.yml
5656
accelerator_cache:
5757
host: http://example.com
58-
web_dir: %kernel.root_dir%/../web
58+
web_dir: %kernel.project_dir%/web
5959
```
6060
6161
4. If you want to use curl rather than fopen set the following option:

Tests/DependencyInjection/AcceleratorCacheExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function testDefaults()
1515
$this->load();
1616

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

0 commit comments

Comments
 (0)