Definition::setProperty()

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

Definition::setProperties()

setProperties(array $properties) Parameters array $properties

Definition::setPublic()

Definition setPublic(bool $boolean) Sets the visibility of this service. Parameters bool $boolean Return Value Definition The current instance

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

Definition setAutowiringTypes(array $types) Sets types that will default to this definition. Parameters array $types Return Value Definition The current instance

Definition::setAutowired()

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