public function DefinitionDecorator::setDecoratedService in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/DefinitionDecorator.php \Symfony\Component\DependencyInjection\DefinitionDecorator::setDecoratedService()
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:
Return value
Definition The current instance
Throws
InvalidArgumentException In case the decorated service id and the new decorated service id are equals.
Overrides Definition::setDecoratedService
File
- vendor/
symfony/ dependency-injection/ DefinitionDecorator.php, line 153
Class
- DefinitionDecorator
- This definition decorates another definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function setDecoratedService($id, $renamedId = null) {
$this->changes['decorated_service'] = true;
return parent::setDecoratedService($id, $renamedId);
}