DecorateTrait
Table of Contents
Methods
- decorate() : $this
- Sets the service that this service is decorating.
Methods
decorate()
Sets the service that this service is decorating.
public
final decorate(string|null $id[, string $renamedId = null ][, int $priority = 0 ][, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ]) : $this
Parameters
- $id : string|null
-
The decorated service id, use null to remove decoration
- $renamedId : string = null
- $priority : int = 0
- $invalidBehavior : int = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE