/** * @Route("/add-regions", name="add_regions") */ public function addRegionsAction() { $sm = new SubscriptionManager($this->get('app.whoscored'), $this->getDoctrine()->getManager()); $sm->getRegions(); $this->addFlash('notice', 'Added regions.'); return $this->render('default/index.html.twig'); }