controllers/DictionaryController.php
public function actionSynonyms($class = null)
    {
        try {
            foreach (Yii::$app->rhoone->dic->getSynonyms($class) as $synonyms) {
                echo $synonyms->word . "\n";
            }
        } catch (\Exception $ex) {
            throw new Exception($ex->getMessage());
        }
        return 0;
    }
public function actionSynonyms($class = null)
    {
        try {
            foreach (Yii::$app->rhoone->dic->getSynonyms($class) as $synonyms) {
                echo $synonyms->word . "\n";
            }
        } catch (\Exception $ex) {
            throw new Exception($ex->getMessage());
        }
        return 0;
    }
public function actionSynonyms ( $ class = null ) { try { foreach ( Yii :: $ app -> rhoone -> dic -> getSynonyms ( $ class ) as $ synonyms ) { echo $ synonyms -> word . "\n" ; } } catch ( \ Exception $ ex ) { throw new Exception ( $ ex -> getMessage ( ) ) ; } return 0 ; }
List all synonyms.
@param string $class
@return int
List all synonyms .