src/Behat/Behat/HelperContainer/Argument/ServicesResolverFactory.php
private function createContainer($settings)
    {
        if (is_string($settings)) {
            return $this->createContainerFromString($settings);
        }

        if (is_array($settings)) {
            return $this->createContainerFromArray($settings);
        }

        throw new WrongServicesConfigurationException(
            sprintf('`services` must be either string or an array, but `%s` given.', gettype($settings))
        );
    }
private function createContainer($settings)
    {
        if (is_string($settings)) {
            return $this->createContainerFromString($settings);
        }

        if (is_array($settings)) {
            return $this->createContainerFromArray($settings);
        }

        throw new WrongServicesConfigurationException(
            sprintf('`services` must be either string or an array, but `%s` given.', gettype($settings))
        );
    }
private function createContainer ( $ settings ) { if ( is_string ( $ settings ) ) { return $ this -> createContainerFromString ( $ settings ) ; } if ( is_array ( $ settings ) ) { return $ this -> createContainerFromArray ( $ settings ) ; } throw new WrongServicesConfigurationException ( sprintf ( '`services` must be either string or an array, but `%s` given.' , gettype ( $ settings ) ) ) ; }
Creates container from the setting passed.

@param string $settings

@return mixed

@throws WrongServicesConfigurationException
Creates container from the setting passed .