src/Components/AlternateAuth.php
public function setService($id)
    {
        $id = filter_var($id, FILTER_SANITIZE_NUMBER_INT);
        if (empty($id)) {
            throw new InternalServerErrorException('No service id provided.');
        }

        if (empty($this->service = ServiceManager::getServiceNameById($id))) {
            throw new InternalServerErrorException('No alternate db service found with id ' . $id);
        }
    }
public function setService($id)
    {
        $id = filter_var($id, FILTER_SANITIZE_NUMBER_INT);
        if (empty($id)) {
            throw new InternalServerErrorException('No service id provided.');
        }

        if (empty($this->service = ServiceManager::getServiceNameById($id))) {
            throw new InternalServerErrorException('No alternate db service found with id ' . $id);
        }
    }
public function setService ( $ id ) { $ id = filter_var ( $ id , FILTER_SANITIZE_NUMBER_INT ) ; if ( empty ( $ id ) ) { throw new InternalServerErrorException ( 'No service id provided.' ) ; } if ( empty ( $ this -> service = ServiceManager :: getServiceNameById ( $ id ) ) ) { throw new InternalServerErrorException ( 'No alternate db service found with id ' . $ id ) ; } }
Sets the db service name

@param integer $id

@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Sets the db service name