src/Behat/Behat/HelperContainer/Argument/ServicesResolverFactory.php
private function createContainerFromClassSpec($classSpec)
    {
        $constructor = explode('::', $classSpec);

        if (2 === count($constructor)) {
            return call_user_func($constructor);
        }

        return new $constructor[0];
    }
private function createContainerFromClassSpec($classSpec)
    {
        $constructor = explode('::', $classSpec);

        if (2 === count($constructor)) {
            return call_user_func($constructor);
        }

        return new $constructor[0];
    }
private function createContainerFromClassSpec ( $ classSpec ) { $ constructor = explode ( '::' , $ classSpec ) ; if ( 2 === count ( $ constructor ) ) { return call_user_func ( $ constructor ) ; } return new $ constructor [ 0 ] ; }
Creates container from string-based class spec.

@param string $classSpec

@return mixed
Creates container from string - based class spec .