DefinitionDecorator::setAutowired()

Definition setAutowired($autowired) Sets autowired. Parameters $autowired Return Value Definition The current instance

DefinitionDecorator::getParent()

string getParent() Returns the Definition being decorated. Return Value string

DefinitionDecorator::getChanges()

array getChanges() Returns all changes tracked for the Definition object. Return Value array An array of changes for this Definition

DefinitionDecorator::replaceArgument()

Definition replaceArgument(int $index, mixed $value) You should always use this method when overwriting existing arguments of the parent definition. If you directly call setArguments() keep in mind that you must follow certain conventions when you want to overwrite the arguments of the parent definition, otherwise your arguments will only be appended. Parameters int $index mixed $value Return Value Definition The current instance Exceptions InvalidArgumentException when $ind

DefinitionDecorator

class DefinitionDecorator extends Definition This definition decorates another definition. Methods __construct(string $parent) Definition setFactory($callable) Sets a factory. string|array getFactory() Gets the factory. from Definition 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. from Definit

DefinitionDecorator::getArgument()

mixed getArgument(int $index) Gets an argument to pass to the service constructor/factory method. If replaceArgument() has been used to replace an argument, this method will return the replacement value. Parameters int $index Return Value mixed The argument value Exceptions OutOfBoundsException When the argument does not exist

Definition::setSynthetic()

Definition setSynthetic(bool $boolean) Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected. Parameters bool $boolean Return Value Definition the current instance

Definition::setShared()

Definition setShared(bool $shared) Sets if the service must be shared or not. Parameters bool $shared Whether the service must be shared or not Return Value Definition The current instance

Definition::setTags()

Definition setTags(array $tags) Sets tags for this definition. Parameters array $tags Return Value Definition the current instance

Definition::setProperty()

setProperty($name, $value) Parameters $name $value