Jarves\Configuration\Stream::getService PHP Method

getService() public method

public getService ( ) : string
return string
    public function getService()
    {
        return $this->service;
    }

Usage Example

Example #1
0
 public function runStream(Stream $stream, &$response, array $params = array())
 {
     $serviceName = explode(':', $stream->getService())[0];
     $method = explode(':', $stream->getService())[1];
     $instance = $this->get($serviceName);
     $callable = array($instance, $method);
     $parameters = array(&$response, $params);
     call_user_func_array($callable, $parameters);
 }