Definition::setProperty()

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

Definition::setProperties()

setProperties(array $properties) Parameters array $properties

Definition::setMethodCalls()

Definition setMethodCalls(array $calls = array()) Sets the methods to call after service initialization. Parameters array $calls An array of method calls Return Value Definition The current instance

Definition::setLazy()

Definition setLazy(bool $lazy) Sets the lazy flag of this service. Parameters bool $lazy Return Value Definition The current instance

Definition::setFile()

Definition setFile(string $file) Sets a file to require before creating the service. Parameters string $file A full pathname to include Return Value Definition The current instance

Definition::setFactory()

Definition setFactory(string|array $factory) Sets a factory. Parameters string|array $factory A PHP function or an array containing a class/Reference and a method to call Return Value Definition The current instance

Definition::setDeprecated()

Definition setDeprecated(bool $status = true, string $template = null) Whether this definition is deprecated, that means it should not be called anymore. Parameters bool $status string $template Template message to use if the definition is deprecated Return Value Definition the current instance Exceptions InvalidArgumentException When the message template is invalid.

Definition::setDecoratedService()

Definition setDecoratedService(null|string $id, null|string $renamedId = null, int $priority) Sets the service that this service is decorating. Parameters null|string $id The decorated service id, use null to remove decoration null|string $renamedId The new decorated service id int $priority The priority of decoration Return Value Definition The current instance Exceptions InvalidArgumentException In case the decorated service id and the new decorated service id are equals.

Definition::setConfigurator()

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::setClass()

Definition setClass(string $class) Sets the service class. Parameters string $class The service class Return Value Definition The current instance