scripts/tools/KvToRdsMigration.php
protected function setCurrentResultStorageToRdsStorage()
    {
        if ($this->isDryrun()) {
            return;
        }
        /** @var ResultServerService $resultService */
        $resultService = $this->getServiceLocator()->get(ResultServerService::SERVICE_ID);
        $resultService->setOption(ResultServerService::OPTION_RESULT_STORAGE, RdsResultStorage::SERVICE_ID);
        $this->registerService(ResultServerService::SERVICE_ID, $resultService);
        $this->report->add(\common_report_Report::createSuccess('Storage type successfully updated to RDS Storage'));
    }
protected function setCurrentResultStorageToRdsStorage()
    {
        if ($this->isDryrun()) {
            return;
        }
        /** @var ResultServerService $resultService */
        $resultService = $this->getServiceLocator()->get(ResultServerService::SERVICE_ID);
        $resultService->setOption(ResultServerService::OPTION_RESULT_STORAGE, RdsResultStorage::SERVICE_ID);
        $this->registerService(ResultServerService::SERVICE_ID, $resultService);
        $this->report->add(\common_report_Report::createSuccess('Storage type successfully updated to RDS Storage'));
    }
protected function setCurrentResultStorageToRdsStorage ( ) { if ( $ this -> isDryrun ( ) ) { return ; } /** @var ResultServerService $resultService */ $ resultService = $ this -> getServiceLocator ( ) -> get ( ResultServerService :: SERVICE_ID ) ; $ resultService -> setOption ( ResultServerService :: OPTION_RESULT_STORAGE , RdsResultStorage :: SERVICE_ID ) ; $ this -> registerService ( ResultServerService :: SERVICE_ID , $ resultService ) ; $ this -> report -> add ( \ common_report_Report :: createSuccess ( 'Storage type successfully updated to RDS Storage' ) ) ; }
Register rdsStorage as default result storage

@throws \common_Exception
Register rdsStorage as default result storage