public function Definition::setFactoryService in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php \Symfony\Component\DependencyInjection\Definition::setFactoryService()
Sets the name of the service that acts as a factory using the factory method.
@api
Parameters
string $factoryService The factory service id:
Return value
Definition The current instance
Deprecated
since version 2.6, to be removed in 3.0.
1 call to Definition::setFactoryService()
- DefinitionDecorator::setFactoryService in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ DefinitionDecorator.php - @api
1 method overrides Definition::setFactoryService()
- DefinitionDecorator::setFactoryService in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ DefinitionDecorator.php - @api
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Definition.php, line 206
Class
- Definition
- Definition represents a service definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function setFactoryService($factoryService) {
trigger_error(sprintf('%s(%s) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', __METHOD__, $factoryService), E_USER_DEPRECATED);
$this->factoryService = $factoryService;
return $this;
}