public function configureOptions(OptionsResolver $resolver) { $journal = $this->journalService->getSelectedJournal(false); if (!$journal instanceof Journal) { return; } $resolver->setDefaults(array('choices' => $journal->getLocaleCodeBag())); }