DI\Definition\Helper\FactoryDefinitionHelper::parameter PHP Метод

parameter() публичный Метод

Because factory methods do not yet support annotations or autowiring, this method should be used to define all parameters except the ContainerInterface and RequestedEntry. Multiple calls can be made to the method to override individual values.
public parameter ( string $parameter, mixed $value ) : FactoryDefinitionHelper
$parameter string Name or index of the parameter for which the value will be given.
$value mixed Value to give to this parameter.
Результат FactoryDefinitionHelper
    public function parameter($parameter, $value)
    {
        $this->parameters[$parameter] = $value;
        return $this;
    }