container->getParameter('chill_main.available_languages'); foreach (LoadCountriesCommand::prepareCountryList($languages) as $country) { $manager->persist($country); } $manager->flush(); } public function setContainer(?ContainerInterface $container = null) { $this->container = $container; } }