PHP Class EzSystems\PlatformBehatBundle\Context\Argument\AnnotationArgumentResolver

Inheritance: implements Behat\Behat\Context\Argument\ArgumentResolver
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
resolveArguments ( ReflectionClass $classReflection, array $arguments = [] ) Resolve service arguments for Behat Context constructor thru annotation.

Private Methods

Method Description
getMethodAnnotations ( $refClass, $method = '__construct' ) : array Returns a array with the method annotations.
parseAnnotations ( $annotations ) : array Returns an array with the method arguments service requirements, if the methods use the service Annotation.

Method Details

resolveArguments() public method

Symfony2Extension ArgumentResoler will convert service names to actual instances.
public resolveArguments ( ReflectionClass $classReflection, array $arguments = [] )
$classReflection ReflectionClass
$arguments array