We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a757bd2 commit 44414ebCopy full SHA for 44414eb
src/DependencyInjection/Compiler/RouterCompilerPass.php
@@ -24,12 +24,12 @@ class RouterCompilerPass extends BaseCompilerPass
24
*/
25
protected function prepare()
26
{
27
- $router = $this->container->getParameter($this->getAlias().'.router');
28
-
29
- if (!$router['enabled']) {
+ if (!$this->container->hasParameter('cache.router')) {
30
return;
31
}
32
+ $router = $this->container->getParameter('cache.router');
+
33
$def = clone $this->container->findDefinition('router');
34
$def->setClass('Cache\CacheBundle\Routing\Router');
35
$def->addMethodCall('setCache', [new Reference($router['service_id'])]);
0 commit comments