Swift_DependencyContainer::register PHP 메소드

register() 공개 메소드

This method returns the current DependencyContainer instance because it requires the use of the fluid interface to set the specific details for the dependency.
public register ( string $itemName ) : Swift_DependencyContainer
$itemName string
리턴 Swift_DependencyContainer
    public function register($itemName)
    {
        $this->_store[$itemName] = array();
        $this->_endPoint =& $this->_store[$itemName];
        return $this;
    }