Issue #2283061 by tim.plunkett: Fixed RequestPath condition uses non-existent service path.alias_manager.cached.

8.0.x
Alex Pott 2014-06-09 13:09:43 -05:00
parent 55c34581e4
commit c4728bcc15
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class RequestPath extends ConditionPluginBase implements ContainerFactoryPluginI
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(
$container->get('path.alias_manager.cached'),
$container->get('path.alias_manager'),
$container->get('path.matcher'),
$container->get('request_stack'),
$configuration,

View File

@ -68,7 +68,7 @@ class RequestPathTest extends KernelTestBase {
// Set a mock alias manager in the container.
$this->aliasManager = new MockAliasManager();
$this->container->set('path.alias_manager.cached', $this->aliasManager);
$this->container->set('path.alias_manager', $this->aliasManager);
// Set the test request stack in the container.
$this->requestStack = new RequestStack();