Merge pull request #15 from Behat/selectors_tag_fix

Fixing the SelectorsPass - wrong id
This commit is contained in:
Christophe Coevoet
2012-07-20 14:01:03 -07:00

View File

@@ -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']) {