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