Definition setAutowiringTypes(array $types) Sets types that will default to this definition. Parameters array $types Return Value Definition The current instance
Definition setArguments(array $arguments) Sets the arguments to pass to the service constructor/factory method. Parameters array $arguments An array of arguments Return Value Definition The current instance
Definition setConfigurator(callable $callable) Sets a configurator to call after the service is fully initialized. Parameters callable $callable A PHP callable Return Value Definition The current instance
Definition removeMethodCall(string $method) Removes a method to call after service initialization. Parameters string $method The method name to remove Return Value Definition The current instance
Definition setAbstract(bool $boolean) Whether this definition is abstract, that means it merely serves as a template for other definitions. Parameters bool $boolean Return Value Definition the current instance
Definition removeAutowiringType(string $type) Removes a type. Parameters string $type Return Value Definition The current instance
Definition replaceArgument(int $index, mixed $argument) Sets a specific argument. Parameters int $index mixed $argument Return Value Definition The current instance Exceptions OutOfBoundsException When the replaced argument does not exist
bool isLazy() Whether this service is lazy. Return Value bool
bool isShared() Whether this service is shared. Return Value bool
bool isSynthetic() Whether this definition is synthetic, that is not constructed by the container, but dynamically injected. Return Value bool
Page 547 of 787