public function typesAction()
    {
        $types = $this->manager->getTypes();

        $response = $this->render(
            'ClarolineCoreBundle:home:home.html.twig',
            [
                'type' => '_pages',
                'region' => $this->renderRegions($this->manager->getRegionContents()),
                'content' => $this->render(
                    'ClarolineCoreBundle:home:types.html.twig',
                    ['types' => $types, 'hasCustomTemplates' => $this->homeService->hasCustomTemplates()]
                )->getContent(),
            ]
        );
        $response->headers->addCacheControlDirective('no-cache', true);
        $response->headers->addCacheControlDirective('max-age', 0);
        $response->headers->addCacheControlDirective('must-revalidate', true);
        $response->headers->addCacheControlDirective('no-store', true);
        $response->headers->addCacheControlDirective('expires', '-1');

        return $response;
    }