PHP Class Matthias\SymfonyServiceDefinitionValidator\ArgumentValidator

Inheritance: implements Matthias\SymfonyServiceDefinitionValidator\ArgumentValidatorInterface
Datei anzeigen Open project: matthiasnoback/symfony-service-definition-validator Class Usage Examples

Public Methods

Method Description
__construct ( ContainerBuilder $containerBuilder, Matthias\SymfonyServiceDefinitionValidator\ResultingClassResolverInterface $resultingClassResolver, $evaluateExpressions = false )
validate ( ReflectionParameter $parameter, $argument )

Private Methods

Method Description
validateArrayArgument ( $argument )
validateClass ( $expectedClassName, $actualClassName )
validateDefinitionArgument ( $className, Definition $definition )
validateExpressionArgument ( $className, Symfony\Component\ExpressionLanguage\Expression $expression, $allowsNull )
validateExpressionResult ( $className, Symfony\Component\ExpressionLanguage\Expression $expression, $allowsNull, Symfony\Component\DependencyInjection\ExpressionLanguage $expressionLanguage )
validateExpressionSyntax ( Symfony\Component\ExpressionLanguage\Expression $expression, Symfony\Component\DependencyInjection\ExpressionLanguage $expressionLanguage )
validateObjectArgument ( $className, $argument, $allowsNull )
validateReferenceArgument ( $className, Reference $reference )

Method Details

__construct() public method

public __construct ( ContainerBuilder $containerBuilder, Matthias\SymfonyServiceDefinitionValidator\ResultingClassResolverInterface $resultingClassResolver, $evaluateExpressions = false )
$containerBuilder Symfony\Component\DependencyInjection\ContainerBuilder
$resultingClassResolver Matthias\SymfonyServiceDefinitionValidator\ResultingClassResolverInterface

validate() public method

public validate ( ReflectionParameter $parameter, $argument )
$parameter ReflectionParameter