Definition::clearTags()

Definition clearTags() Clears the tags for this definition. Return Value Definition The current instance

Definition::clearTag()

Definition clearTag(string $name) Clears all tags for a given name. Parameters string $name The tag name Return Value Definition

Definition::addTag()

Definition addTag(string $name, array $attributes = array()) Adds a tag for this definition. Parameters string $name The tag name array $attributes An array of attributes Return Value Definition The current instance

Definition::addMethodCall()

Definition addMethodCall(string $method, array $arguments = array()) Adds a method to call after service initialization. Parameters string $method The method name to call array $arguments An array of arguments to pass to the method call Return Value Definition The current instance Exceptions InvalidArgumentException on empty $method param

Definition::addAutowiringType()

Definition addAutowiringType(string $type) Adds a type that will default to this definition. Parameters string $type Return Value Definition The current instance

Definition::addArgument()

Definition addArgument(mixed $argument) Adds an argument to pass to the service constructor/factory method. Parameters mixed $argument An argument Return Value Definition The current instance

Definition

class Definition Definition represents a service definition. Methods __construct(string|null $class = null, array $arguments = array()) Definition setFactory(string|array $factory) Sets a factory. string|array getFactory() Gets the factory. Definition setDecoratedService(null|string $id, null|string $renamedId = null, int $priority) Sets the service that this service is decorating. null|array getDecoratedService() Gets the service that decorates this service. Defi

DefaultValueResolver::supports()

bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Parameters Request $request ArgumentMetadata $argument Return Value bool

DefaultValueResolver::resolve()

Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Parameters Request $request ArgumentMetadata $argument Return Value Generator

DefaultValueResolver

class DefaultValueResolver implements ArgumentValueResolverInterface Yields the default value defined in the action signature when no value has been given. Methods bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Details bool supports(Request $request, ArgumentMetadata $ar