Skip to content

Commit 44414eb

Browse files
committed
bugfixes
1 parent a757bd2 commit 44414eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DependencyInjection/Compiler/RouterCompilerPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class RouterCompilerPass extends BaseCompilerPass
2424
*/
2525
protected function prepare()
2626
{
27-
$router = $this->container->getParameter($this->getAlias().'.router');
28-
29-
if (!$router['enabled']) {
27+
if (!$this->container->hasParameter('cache.router')) {
3028
return;
3129
}
3230

31+
$router = $this->container->getParameter('cache.router');
32+
3333
$def = clone $this->container->findDefinition('router');
3434
$def->setClass('Cache\CacheBundle\Routing\Router');
3535
$def->addMethodCall('setCache', [new Reference($router['service_id'])]);

0 commit comments

Comments
 (0)