Skip to content

Commit 0b600d4

Browse files
committed
Fixing type. Changing serice definition id, adding alias
1 parent 592a060 commit 0b600d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/DependencyInjection/Compiler/RouterCompilerPass.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ protected function prepare()
3030
}
3131

3232
$def = clone $this->container->findDefinition('router');
33-
34-
3533
$def->setClass('Cache\CacheBundle\Routing\Router');
36-
$def->addMethodCall('setCache', [new Reference(sprintf('aequasi_cache.instance.%s', $router['instance']))]);
34+
$def->addMethodCall('setCache', [new Reference(sprintf('cache.instance.%s', $router['instance']))]);
3735

38-
$this->container->setDefinition('router.cache', $def);
36+
$this->container->setDefinition('cache.router', $def);
37+
$this->container->setAlias('router.alias', 'cache.router');
3938

4039
if ($router['auto-register']) {
4140
$this->container->setAlias('router', 'router.cache');

0 commit comments

Comments
 (0)