public function Definition::setFactoryService in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Definition.php \Symfony\Component\DependencyInjection\Definition::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
Deprecated
since version 2.6, to be removed in 3.0.
1 call to Definition::setFactoryService()
- DefinitionDecorator::setFactoryService in vendor/
symfony/ dependency-injection/ DefinitionDecorator.php - Sets the name of the service that acts as a factory using the factory method.
1 method overrides Definition::setFactoryService()
- DefinitionDecorator::setFactoryService in vendor/
symfony/ dependency-injection/ DefinitionDecorator.php - Sets the name of the service that acts as a factory using the factory method.
File
- vendor/
symfony/ dependency-injection/ Definition.php, line 197
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;
}