Swift_DependencyContainer::asAliasOf PHP Method

asAliasOf() public method

Specify the previously registered item as an alias of another item.
public asAliasOf ( string $lookup ) : Swift_DependencyContainer
$lookup string
return Swift_DependencyContainer
    public function asAliasOf($lookup)
    {
        $endPoint =& $this->_getEndPoint();
        $endPoint['lookupType'] = self::TYPE_ALIAS;
        $endPoint['ref'] = $lookup;
        return $this;
    }