Issue #2283061 by tim.plunkett: Fixed RequestPath condition uses non-existent service path.alias_manager.cached.
parent
55c34581e4
commit
c4728bcc15
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue