Webiny\Component\ServiceManager\ServiceManagerTrait::service PHP Method

service() protected static method

Get service
protected static service ( string $serviceName ) : object
$serviceName string Service name
return object
    protected static function service($serviceName)
    {
        return ServiceManager::getInstance()->getService($serviceName);
    }
ServiceManagerTrait