public function overviewAction(
        string $production_slug,
        AuthorizationCheckerInterface $auth
    ): Response {
        // Lookup the production by production_slug.
        $production_repo = $this->em->getRepository(Production::class);
        if (null === $production = $production_repo->findOneBy(['slug' => $production_slug])) {
            throw new NotFoundHttpException();
        }

        // Check permissions for this action.
        if (!$auth->isGranted('GROUP_ROLE_USER', $production)) {
            throw new AccessDeniedException();
        }

        // Return response.
        return new Response($this->templating->render('@BkstgCore/Production/overview.html.twig', [
            'production' => $production,
        ]));
    }
public function overviewAction(
        string $production_slug,
        AuthorizationCheckerInterface $auth
    ): Response {
        // Lookup the production by production_slug.
        $production_repo = $this->em->getRepository(Production::class);
        if (null === $production = $production_repo->findOneBy(['slug' => $production_slug])) {
            throw new NotFoundHttpException();
        }

        // Check permissions for this action.
        if (!$auth->isGranted('GROUP_ROLE_USER', $production)) {
            throw new AccessDeniedException();
        }

        // Return response.
        return new Response($this->templating->render('@BkstgCore/Production/overview.html.twig', [
            'production' => $production,
        ]));
    }
public function overviewAction ( string $ production_slug , AuthorizationCheckerInterface $ auth ) : Response { // Lookup the production by production_slug. $ production_repo = $ this -> em -> getRepository ( Production :: class ) ; if ( null === $ production = $ production_repo -> findOneBy ( [ 'slug' => $ production_slug ] ) ) { throw new NotFoundHttpException ( ) ; } // Check permissions for this action. if ( ! $ auth -> isGranted ( 'GROUP_ROLE_USER' , $ production ) ) { throw new AccessDeniedException ( ) ; } // Return response. return new Response ( $ this -> templating -> render ( '@BkstgCore/Production/overview.html.twig' , [ 'production' => $ production , ] ) ) ; }
Shows the production image and description, with block for timeline.

@param string                        $production_slug The production slug.
@param AuthorizationCheckerInterface $auth            The authorization checker service.

@throws NotFoundHttpException When the production is not found.
@throws AccessDeniedException When the user doesn't have access to the production.

@return Response The rendered response.
Shows the production image and description with block for timeline .