public function deleteAllSynonymsAction()
    {
        $allSynonymsCouldBeDeleted = $this->deleteAllSynonyms();

        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $reloadResponse = $coreAdmin->reloadCore();

        if ($allSynonymsCouldBeDeleted
            && $reloadResponse->getHttpStatus() == 200
        ) {
            $this->addFlashMessage(
                'All synonym removed.'
            );
        } else {
            $this->addFlashMessage(
                'Failed to remove all synonyms.',
                'An error occurred',
                FlashMessage::ERROR
            );
        }
        $this->redirect('index');
    }
public function deleteAllSynonymsAction()
    {
        $allSynonymsCouldBeDeleted = $this->deleteAllSynonyms();

        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $reloadResponse = $coreAdmin->reloadCore();

        if ($allSynonymsCouldBeDeleted
            && $reloadResponse->getHttpStatus() == 200
        ) {
            $this->addFlashMessage(
                'All synonym removed.'
            );
        } else {
            $this->addFlashMessage(
                'Failed to remove all synonyms.',
                'An error occurred',
                FlashMessage::ERROR
            );
        }
        $this->redirect('index');
    }
public function deleteAllSynonymsAction ( ) { $ allSynonymsCouldBeDeleted = $ this -> deleteAllSynonyms ( ) ; $ coreAdmin = $ this -> selectedSolrCoreConnection -> getAdminService ( ) ; $ reloadResponse = $ coreAdmin -> reloadCore ( ) ; if ( $ allSynonymsCouldBeDeleted && $ reloadResponse -> getHttpStatus ( ) == 200 ) { $ this -> addFlashMessage ( 'All synonym removed.' ) ; } else { $ this -> addFlashMessage ( 'Failed to remove all synonyms.' , 'An error occurred' , FlashMessage :: ERROR ) ; } $ this -> redirect ( 'index' ) ; }
Delete complete synonym list

@return void
Delete complete synonym list