public function getWebservice($name)
    {
        if (!isset($this->_webservices[$name])) {
            list($pluginName) = pluginSplit(App::shortName(get_class($this), 'Webservice/Driver'));

            $webserviceClass = implode('.', array_filter([$pluginName, Inflector::camelize($name)]));

            $webservice = $this->_createWebservice($webserviceClass, [
                'endpoint' => $name,
                'driver' => $this,
            ]);

            $this->_webservices[$name] = $webservice;
        }

        return $this->_webservices[$name];
    }
public function getWebservice($name)
    {
        if (!isset($this->_webservices[$name])) {
            list($pluginName) = pluginSplit(App::shortName(get_class($this), 'Webservice/Driver'));

            $webserviceClass = implode('.', array_filter([$pluginName, Inflector::camelize($name)]));

            $webservice = $this->_createWebservice($webserviceClass, [
                'endpoint' => $name,
                'driver' => $this,
            ]);

            $this->_webservices[$name] = $webservice;
        }

        return $this->_webservices[$name];
    }
public function getWebservice ( $ name ) { if ( ! isset ( $ this -> _webservices [ $ name ] ) ) { list ( $ pluginName ) = pluginSplit ( App :: shortName ( get_class ( $ this ) , 'Webservice/Driver' ) ) ; $ webserviceClass = implode ( '.' , array_filter ( [ $ pluginName , Inflector :: camelize ( $ name ) ] ) ) ; $ webservice = $ this -> _createWebservice ( $ webserviceClass , [ 'endpoint' => $ name , 'driver' => $ this , ] ) ; $ this -> _webservices [ $ name ] = $ webservice ; } return $ this -> _webservices [ $ name ] ; }
Fetch a webservice instance from the driver registry

@param string $name Registry alias to fetch
@return \Muffin\Webservice\Webservice\WebserviceInterface|null
Fetch a webservice instance from the driver registry