Behat\Behat\Context\ServiceContainer\ContextExtension::processAnnotationReaders PHP Method

processAnnotationReaders() private method

Processes all annotation readers.
private processAnnotationReaders ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder
    private function processAnnotationReaders(ContainerBuilder $container)
    {
        $references = $this->processor->findAndSortTaggedServices($container, self::ANNOTATION_READER_TAG);
        $definition = $container->getDefinition(self::getAnnotatedContextReaderId());
        foreach ($references as $reference) {
            $definition->addMethodCall('registerAnnotationReader', array($reference));
        }
    }