Fixing the SelectorsPass, which referenced the wrong id for the SelectorsHandler, making this compiler never do anything

This commit is contained in:
Ryan Weaver
2012-07-20 15:54:34 -05:00
parent 2fc55fdd35
commit cb0e9ed3fa

View File

@@ -29,11 +29,11 @@ class SelectorsPass implements CompilerPassInterface
*/ */
public function process(ContainerBuilder $container) public function process(ContainerBuilder $container)
{ {
if (!$container->hasDefinition('behat.mink.selectors_handler')) { if (!$container->hasDefinition('behat.mink.selector.handler')) {
return; 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 ($container->findTaggedServiceIds('behat.mink.selector') as $id => $attributes) {
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
if (isset($attribute['alias']) && $alias = $attribute['alias']) { if (isset($attribute['alias']) && $alias = $attribute['alias']) {