Skip to content

Commit

Permalink
EZP-27249: Fix routerpass to use defined class (#88)
Browse files Browse the repository at this point in the history
* Fix routerpass to use defined class

* Use FQCN as string, since legacy bridge still supports PHP 5.4.

* Simplify routing pass
  • Loading branch information
wizhippo authored and emodric committed Apr 13, 2017
1 parent 1b060ab commit e66c3df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 6 additions & 5 deletions bundle/DependencyInjection/Compiler/RoutingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ public function process(ContainerBuilder $container)
return;
}

$defaultRouterDef = $container->getDefinition('router.default');
$defaultRouterDef->addMethodCall(
'setLegacyAwareRoutes',
['%ezpublish.default_router.legacy_aware_routes%']
);
$container->getDefinition('router.default')
->setClass('eZ\Bundle\EzPublishLegacyBundle\Routing\DefaultRouter')
->addMethodCall(
'setLegacyAwareRoutes',
['%ezpublish.default_router.legacy_aware_routes%']
);
}
}
1 change: 0 additions & 1 deletion bundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ parameters:
ezpublish.default_router.legacy_aware_routes: ['_ezpublishLegacyTreeMenu', 'ezpublish_rest_', '_ezpublishPreviewContent', '_wdt', '_profiler', '_assetic']

# Core overrides
router.class: eZ\Bundle\EzPublishLegacyBundle\Routing\DefaultRouter
ezpublish.security.login_listener.class: eZ\Bundle\EzPublishLegacyBundle\Security\SecurityListener
security.authentication.listener.rememberme.class: eZ\Bundle\EzPublishLegacyBundle\Security\RememberMeListener

Expand Down

0 comments on commit e66c3df

Please sign in to comment.