public function indexAction(
        Request $request,
        PaginatorInterface $paginator
    ): Response {
        // Get the production repo.
        $repo = $this->em->getRepository(Production::class);
        $query = $repo->findAllOpenQuery();

        // Paginate and render the list of productions.
        $productions = $paginator->paginate($query, $request->query->getInt('page', 1));

        return new Response($this->templating->render('@BkstgCore/ProductionAdmin/index.html.twig', [
            'productions' => $productions,
        ]));
    }
public function indexAction(
        Request $request,
        PaginatorInterface $paginator
    ): Response {
        // Get the production repo.
        $repo = $this->em->getRepository(Production::class);
        $query = $repo->findAllOpenQuery();

        // Paginate and render the list of productions.
        $productions = $paginator->paginate($query, $request->query->getInt('page', 1));

        return new Response($this->templating->render('@BkstgCore/ProductionAdmin/index.html.twig', [
            'productions' => $productions,
        ]));
    }
public function indexAction ( Request $ request , PaginatorInterface $ paginator ) : Response { // Get the production repo. $ repo = $ this -> em -> getRepository ( Production :: class ) ; $ query = $ repo -> findAllOpenQuery ( ) ; // Paginate and render the list of productions. $ productions = $ paginator -> paginate ( $ query , $ request -> query -> getInt ( 'page' , 1 ) ) ; return new Response ( $ this -> templating -> render ( '@BkstgCore/ProductionAdmin/index.html.twig' , [ 'productions' => $ productions , ] ) ) ; }
Shows a list of productions.

@param Request            $request   The incoming request.
@param PaginatorInterface $paginator The paginator service.

@return Response The rendered response.
Shows a list of productions .