You are here

public function DefinitionDecorator::setFactoryService in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\DependencyInjection

Code

public function setFactoryService($service) {
  $this->changes['factory_service'] = true;
  return parent::setFactoryService($service);
}