Use the new router first, then the legacy router.

8.0.x
Larry Garfield 2012-12-31 18:04:27 -06:00
parent 4feeb0dce4
commit 811bf09c11
1 changed files with 3 additions and 3 deletions

View File

@ -168,9 +168,9 @@ class CoreBundle extends Bundle {
->addArgument(new Reference('legacy_generator'));
$container->register('router', 'Symfony\Cmf\Component\Routing\ChainRouter')
->addMethodCall('setContext', array(new Reference('router.request_context')))
->addMethodCall('add', array(new Reference('legacy_router')))
->addMethodCall('add', array(new Reference('router.dynamic')));
->addMethodCall('setContext', array(new Reference('router.request_context')))
->addMethodCall('add', array(new Reference('router.dynamic')))
->addMethodCall('add', array(new Reference('legacy_router')));
$container
->register('cache.path', 'Drupal\Core\Cache\CacheBackendInterface')