src/Behat/Behat/HelperContainer/Argument/ServicesResolverFactory.php
private function loadContainerFromContainer($name)
    {
        $services = $this->container->findTaggedServiceIds(HelperContainerExtension::HELPER_CONTAINER_TAG);

        if (!array_key_exists($name, $services)) {
            throw new WrongServicesConfigurationException(
                sprintf('Service container `@%s` was not found.', $name)
            );
        }

        return $this->container->get($name);
    }
private function loadContainerFromContainer($name)
    {
        $services = $this->container->findTaggedServiceIds(HelperContainerExtension::HELPER_CONTAINER_TAG);

        if (!array_key_exists($name, $services)) {
            throw new WrongServicesConfigurationException(
                sprintf('Service container `@%s` was not found.', $name)
            );
        }

        return $this->container->get($name);
    }
private function loadContainerFromContainer ( $ name ) { $ services = $ this -> container -> findTaggedServiceIds ( HelperContainerExtension :: HELPER_CONTAINER_TAG ) ; if ( ! array_key_exists ( $ name , $ services ) ) { throw new WrongServicesConfigurationException ( sprintf ( 'Service container `@%s` was not found.' , $ name ) ) ; } return $ this -> container -> get ( $ name ) ; }
Loads container from string.

@param string $name

@return mixed

@throws WrongServicesConfigurationException
Loads container from string .