You are here

public function DefinitionDecorator::setFactoryMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/DefinitionDecorator.php \Symfony\Component\DependencyInjection\DefinitionDecorator::setFactoryMethod()

Sets the factory method able to create an instance of this class.

Parameters

string $factoryMethod The factory method name:

Return value

Definition The current instance

Overrides Definition::setFactoryMethod

Deprecated

since version 2.6, to be removed in 3.0.

File

vendor/symfony/dependency-injection/DefinitionDecorator.php, line 93

Class

DefinitionDecorator
This definition decorates another definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setFactoryMethod($method) {
  $this->changes['factory_method'] = true;
  return parent::setFactoryMethod($method);
}