예제 #1
0
 /**
  * Synchronizes database and filesystem translations
  *
  * @param Request $request
  */
 public function syncDictionary(Request $request, KernelInterface $kernel)
 {
     $this->kernel = $kernel;
     $this->currentLocale = $request->getLocale();
     $this->locales = $this->localeRepository->findAll();
     $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
     $this->loadFilesystemTranslations();
     $this->loadDatabaseTranslations();
     $this->mergeAndSaveTranslations();
 }