src/Behat/Behat/Definition/ServiceContainer/DefinitionExtension.php
private function processPatternPolicies(ContainerBuilder $container)
    {
        $references = $this->processor->findAndSortTaggedServices($container, self::PATTERN_POLICY_TAG);
        $definition = $container->getDefinition(self::PATTERN_TRANSFORMER_ID);

        foreach ($references as $reference) {
            $definition->addMethodCall('registerPatternPolicy', array($reference));
        }
    }
private function processPatternPolicies(ContainerBuilder $container)
    {
        $references = $this->processor->findAndSortTaggedServices($container, self::PATTERN_POLICY_TAG);
        $definition = $container->getDefinition(self::PATTERN_TRANSFORMER_ID);

        foreach ($references as $reference) {
            $definition->addMethodCall('registerPatternPolicy', array($reference));
        }
    }
private function processPatternPolicies ( ContainerBuilder $ container ) { $ references = $ this -> processor -> findAndSortTaggedServices ( $ container , self :: PATTERN_POLICY_TAG ) ; $ definition = $ container -> getDefinition ( self :: PATTERN_TRANSFORMER_ID ) ; foreach ( $ references as $ reference ) { $ definition -> addMethodCall ( 'registerPatternPolicy' , array ( $ reference ) ) ; } }
Processes all pattern policies.

@param ContainerBuilder $container
Processes all pattern policies .