public function homeAction(
        TokenStorageInterface $token_storage,
        MembershipProviderInterface $membership_provider
    ): Response {
        // Get the user and memberships.
        $user = $token_storage->getToken()->getUser();
        $memberships = $membership_provider->loadActiveMembershipsByUser($user);

        // Render the response.
        return new Response($this->templating->render('@BkstgCore/Home/home.html.twig', [
            'memberships' => $memberships,
        ]));
    }
public function homeAction(
        TokenStorageInterface $token_storage,
        MembershipProviderInterface $membership_provider
    ): Response {
        // Get the user and memberships.
        $user = $token_storage->getToken()->getUser();
        $memberships = $membership_provider->loadActiveMembershipsByUser($user);

        // Render the response.
        return new Response($this->templating->render('@BkstgCore/Home/home.html.twig', [
            'memberships' => $memberships,
        ]));
    }
public function homeAction ( TokenStorageInterface $ token_storage , MembershipProviderInterface $ membership_provider ) : Response { // Get the user and memberships. $ user = $ token_storage -> getToken ( ) -> getUser ( ) ; $ memberships = $ membership_provider -> loadActiveMembershipsByUser ( $ user ) ; // Render the response. return new Response ( $ this -> templating -> render ( '@BkstgCore/Home/home.html.twig' , [ 'memberships' => $ memberships , ] ) ) ; }
Shows a list of productions the current user has access to.

@param TokenStorageInterface       $token_storage       The security token storage service.
@param MembershipProviderInterface $membership_provider The membership provider service.

@return Response The rendered response.
Shows a list of productions the current user has access to .