Swift_DependencyContainer::asSharedInstanceOf PHP Method

asSharedInstanceOf() public method

{@link register()} must be called before this will work.
public asSharedInstanceOf ( string $className ) : Swift_DependencyContainer
$className string
return Swift_DependencyContainer
    public function asSharedInstanceOf($className)
    {
        $endPoint =& $this->_getEndPoint();
        $endPoint['lookupType'] = self::TYPE_SHARED;
        $endPoint['className'] = $className;
        return $this;
    }