Пример #1
0
 public static function createWriteFileEvent($translationFilePath, $translatableStrings, $translatedStrings, $createFileIfNotExists)
 {
     $event = new TranslationEvent();
     $event->setTranslatableStrings($translatableStrings);
     $event->setTranslatedStrings($translatedStrings);
     $event->setCreateFileIfNotExists($createFileIfNotExists);
     $event->setTranslationFilePath($translationFilePath);
     return $event;
 }