. // }}} namespace Plugin\Directory\Controller; use App\Core\Controller\FeedController; use App\Core\DB\DB; use Symfony\Component\HttpFoundation\Request; class Directory extends FeedController { /** * actors stream * * @return array template */ public function actors(Request $request): array { return $this->process_feed([ '_template' => 'directory/actors.html.twig', 'actors' => DB::dql('select a from actor a order by a.nickname ASC'), ]); } /** * groups stream * * @return array template */ public function groups(Request $request): array { return $this->process_feed([ '_template' => 'directory/groups.html.twig', 'groups' => DB::dql('select g from group g order by g.nickname ASC'), ]); } }