DecorateTrait
Table of Contents
- 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|null $renamedId = null ], int $priority[, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE ]) : $this
Parameters
- $id : string|null
-
The decorated service id, use null to remove decoration
- $renamedId : string|null = null
- $priority : int
- $invalidBehavior : int = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE