public function DefinitionDecorator::setFactoryClass in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\DependencyInjectionCode
public function setFactoryClass($class) {
$this->changes['factory_class'] = true;
return parent::setFactoryClass($class);
}