protected function setService($serviceName)
    {
        if (empty($serviceName)) {
            throw new InternalServerErrorException('No target service name provided for CSV import.');
        }
        $this->service = ServiceManager::getService($serviceName);
        $this->serviceGroupType = $this->service->getServiceTypeInfo()->getGroup();
    }
protected function setService($serviceName)
    {
        if (empty($serviceName)) {
            throw new InternalServerErrorException('No target service name provided for CSV import.');
        }
        $this->service = ServiceManager::getService($serviceName);
        $this->serviceGroupType = $this->service->getServiceTypeInfo()->getGroup();
    }
protected function setService ( $ serviceName ) { if ( empty ( $ serviceName ) ) { throw new InternalServerErrorException ( 'No target service name provided for CSV import.' ) ; } $ this -> service = ServiceManager :: getService ( $ serviceName ) ; $ this -> serviceGroupType = $ this -> service -> getServiceTypeInfo ( ) -> getGroup ( ) ; }
Sets the target service

@param $serviceName

@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Sets the target service