public function switchCoreAction(string $corePath, string $uriToRedirectTo)
    {
        $moduleData = $this->moduleDataStorageService->loadModuleData();
        $moduleData->setCore($corePath);

        $this->moduleDataStorageService->persistModuleData($moduleData);
        $message = LocalizationUtility::translate('coreselector_switched_successfully', 'solr', [$corePath]);
        $this->addFlashMessage($message);
        $this->redirectToUri($uriToRedirectTo);
    }
public function switchCoreAction(string $corePath, string $uriToRedirectTo)
    {
        $moduleData = $this->moduleDataStorageService->loadModuleData();
        $moduleData->setCore($corePath);

        $this->moduleDataStorageService->persistModuleData($moduleData);
        $message = LocalizationUtility::translate('coreselector_switched_successfully', 'solr', [$corePath]);
        $this->addFlashMessage($message);
        $this->redirectToUri($uriToRedirectTo);
    }
public function switchCoreAction ( string $ corePath , string $ uriToRedirectTo ) { $ moduleData = $ this -> moduleDataStorageService -> loadModuleData ( ) ; $ moduleData -> setCore ( $ corePath ) ; $ this -> moduleDataStorageService -> persistModuleData ( $ moduleData ) ; $ message = LocalizationUtility :: translate ( 'coreselector_switched_successfully' , 'solr' , [ $ corePath ] ) ; $ this -> addFlashMessage ( $ message ) ; $ this -> redirectToUri ( $ uriToRedirectTo ) ; }
Switches used core.

Note: Does not check availability of core in site. All this stuff is done in the generation step.

@param string $corePath
@param string $uriToRedirectTo
Switches used core .