You are here

public function DefinitionDecorator::setFactoryClass in Zircon Profile 8

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

Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.

Parameters

string $factoryClass The factory class name:

Return value

Definition The current instance

Overrides Definition::setFactoryClass

Deprecated

since version 2.6, to be removed in 3.0.

File

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

Class

DefinitionDecorator
This definition decorates another definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setFactoryClass($class) {
  $this->changes['factory_class'] = true;
  return parent::setFactoryClass($class);
}