Commit 6d596146 authored by Andreas Heimann's avatar Andreas Heimann

disable debug bar on comingSoon

parent 8dbc7372
......@@ -6,6 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use App\Entity\ClientRelease;
use App\Entity\Song;
......@@ -17,11 +18,14 @@ class IndexController extends AbstractController
/**
* @Route("/", name="index.comingsoon")
*/
public function comingSoon(Request $request)
public function comingSoon(Profiler $profiler, Request $request)
{
$em = $this->getDoctrine()->getManager();
$data = [];
// Disable Debug Bar
$profiler->disable();
return $this->render('comingsoon.html.twig', $data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment