Swift_DependencyContainer::addConstructorValue PHP Method

addConstructorValue() public method

Specify a literal (non looked up) value for the constructor of the previously registered item.
public addConstructorValue ( mixed $value ) : Swift_DependencyContainer
$value mixed
return Swift_DependencyContainer
    public function addConstructorValue($value)
    {
        $endPoint =& $this->_getEndPoint();
        if (!isset($endPoint['args'])) {
            $endPoint['args'] = array();
        }
        $endPoint['args'][] = array('type' => 'value', 'item' => $value);
        return $this;
    }