ArgumentResolverInterface

interface ArgumentResolverInterface An ArgumentResolverInterface instance knows how to determine the arguments for a specific action. Methods array getArguments(Request $request, callable $controller) Returns the arguments to pass to the controller. Details array getArguments(Request $request, callable $controller) Returns the arguments to pass to the controller. Parameters Request $request callable $controller Return Value array An array o

ArgumentResolver

class ArgumentResolver implements ArgumentResolverInterface Responsible for resolving the arguments passed to an action. Methods __construct(ArgumentMetadataFactoryInterface $argumentMetadataFactory = null, array $argumentValueResolvers = array()) array getArguments(Request $request, callable $controller) Returns the arguments to pass to the controller. Details __construct(ArgumentMetadataFactoryInterface $argumentMetadataFactory = null, array $argu

ArgumentMetadataFactoryInterface

interface ArgumentMetadataFactoryInterface Builds method argument data. Methods ArgumentMetadata[] createArgumentMetadata(mixed $controller) Details ArgumentMetadata[] createArgumentMetadata(mixed $controller) Parameters mixed $controller The controller to resolve the arguments for Return Value ArgumentMetadata[]

ArgumentMetadataFactory

class ArgumentMetadataFactory implements ArgumentMetadataFactoryInterface Builds {see ArgumentMetadata} objects based on the given Controller. Methods __construct() ArgumentMetadata[] createArgumentMetadata(mixed $controller) Details __construct() ArgumentMetadata[] createArgumentMetadata(mixed $controller) Parameters mixed $controller The controller to resolve the arguments for Return Value Arg

ArgumentMetadata::isVariadic()

bool isVariadic() Returns whether the argument is defined as ". ..$variadic". Return Value bool

ArgumentMetadata::isNullable()

bool isNullable() Returns whether the argument accepts null values. Return Value bool

ArgumentMetadata::hasDefaultValue()

bool hasDefaultValue() Returns whether the argument has a default value. Implies whether an argument is optional. Return Value bool

ArgumentMetadata::getType()

string getType() Returns the type of the argument. The type is the PHP class in 5.5+ and additionally the basic type in PHP 7.0+. Return Value string

ArgumentMetadata::getName()

string getName() Returns the name as given in PHP, $foo would yield "foo". Return Value string

ArgumentMetadata::getDefaultValue()

mixed getDefaultValue() Returns the default value of the argument. Return Value mixed Exceptions LogicException if no default value is present; {see self::hasDefaultValue()}