public function getAllAvailablePlugins() { if ($this->availablePlugins) { return $this->availablePlugins; } return $this->availablePlugins = $this->em->getRepository('Newscoop\\Entity\\Plugin')->findAll(); }