plugins = $manager; } /** * @Route(path="/", name="plugins", methods={"GET"}) * * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { $plugins = $this->plugins->getPlugins(); foreach ($this->plugins->getPlugins() as $plugin) { $this->plugins->loadMetadata($plugin); } return $this->render('plugin/index.html.twig', [ 'plugins' => $plugins, ]); } }