Swift_DependencyContainer::addConstructorLookup PHP Method

addConstructorLookup() public method

Specify a dependency lookup for the constructor of the previously registered item.
public addConstructorLookup ( string $lookup ) : Swift_DependencyContainer
$lookup string
return Swift_DependencyContainer
    public function addConstructorLookup($lookup)
    {
        $endPoint =& $this->_getEndPoint();
        if (!isset($this->_endPoint['args'])) {
            $endPoint['args'] = array();
        }
        $endPoint['args'][] = array('type' => 'lookup', 'item' => $lookup);
        return $this;
    }