public function dependencyCall($type, $name, array $args = array())
    {
        switch($type)
        {
            case 'service':
                return $this->get($name);
                break;
            case 'callable':
                return $this->__call($name, $args);
                break;
            case 'factory':
                return $this->create($name, $args);
                break;
        }
    }
public function dependencyCall($type, $name, array $args = array())
    {
        switch($type)
        {
            case 'service':
                return $this->get($name);
                break;
            case 'callable':
                return $this->__call($name, $args);
                break;
            case 'factory':
                return $this->create($name, $args);
                break;
        }
    }
public function dependencyCall ( $ type , $ name , array $ args = array ( ) ) { switch ( $ type ) { case 'service' : return $ this -> get ( $ name ) ; break ; case 'callable' : return $ this -> __call ( $ name , $ args ) ; break ; case 'factory' : return $ this -> create ( $ name , $ args ) ; break ; } }
All-capable dependency call.
@param string $type
@param string $name
@param array $args
@return mixed
All - capable dependency call .