public function DefinitionDecorator::setFactoryService in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/DefinitionDecorator.php \Symfony\Component\DependencyInjection\DefinitionDecorator::setFactoryService()
Sets the name of the service that acts as a factory using the factory method.
Parameters
string $factoryService The factory service id:
Return value
Definition The current instance
Overrides Definition::setFactoryService
Deprecated
since version 2.6, to be removed in 3.0.
File
- vendor/
symfony/ dependency-injection/ DefinitionDecorator.php, line 103
Class
- DefinitionDecorator
- This definition decorates another definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function setFactoryService($service) {
$this->changes['factory_service'] = true;
return parent::setFactoryService($service);
}