trait DecorateTrait
$this | decorate(string|null $id, string|null $renamedId = null, int $priority = 0) Sets the service that this service is decorating. |
Sets the service that this service is decorating.
string|null | $id | The decorated service id, use null to remove decoration |
string|null | $renamedId | The new decorated service id |
int | $priority | The priority of decoration |
$this |
InvalidArgumentException | in case the decorated service id and the new decorated service id are equals |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/DecorateTrait.html