Swift_DependencyContainer::register PHP Method

register() public method

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
return Swift_DependencyContainer
    public function register($itemName)
    {
        $this->_store[$itemName] = array();
        $this->_endPoint =& $this->_store[$itemName];
        return $this;
    }