From cb0e9ed3faa8fa6fbba47c50e24b69d8891f173c Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 20 Jul 2012 15:54:34 -0500 Subject: [PATCH] Fixing the SelectorsPass, which referenced the wrong id for the SelectorsHandler, making this compiler never do anything --- src/Behat/MinkExtension/Compiler/SelectorsPass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Behat/MinkExtension/Compiler/SelectorsPass.php b/src/Behat/MinkExtension/Compiler/SelectorsPass.php index 77032e1..bba1cdf 100644 --- a/src/Behat/MinkExtension/Compiler/SelectorsPass.php +++ b/src/Behat/MinkExtension/Compiler/SelectorsPass.php @@ -29,11 +29,11 @@ class SelectorsPass implements CompilerPassInterface */ public function process(ContainerBuilder $container) { - if (!$container->hasDefinition('behat.mink.selectors_handler')) { + if (!$container->hasDefinition('behat.mink.selector.handler')) { return; } - $handlerDefinition = $container->getDefinition('behat.mink.selectors_handler'); + $handlerDefinition = $container->getDefinition('behat.mink.selector.handler'); foreach ($container->findTaggedServiceIds('behat.mink.selector') as $id => $attributes) { foreach ($attributes as $attribute) { if (isset($attribute['alias']) && $alias = $attribute['alias']) {