You are here

public function Definition::setFactoryClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Definition.php \Symfony\Component\DependencyInjection\Definition::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

Deprecated

since version 2.6, to be removed in 3.0.

1 call to Definition::setFactoryClass()
DefinitionDecorator::setFactoryClass in vendor/symfony/dependency-injection/DefinitionDecorator.php
Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.
1 method overrides Definition::setFactoryClass()
DefinitionDecorator::setFactoryClass in vendor/symfony/dependency-injection/DefinitionDecorator.php
Sets the name of the class that acts as a factory using the factory method, which will be invoked statically.

File

vendor/symfony/dependency-injection/Definition.php, line 94

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setFactoryClass($factoryClass) {
  @trigger_error(sprintf('%s(%s) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', __METHOD__, $factoryClass), E_USER_DEPRECATED);
  $this->factoryClass = $factoryClass;
  return $this;
}