/** * Renders the front end preview switcher. * * @return Response * * @Route("/switch", name="contao_backend_switch") */ public function switchAction() { $this->container->get('contao.framework')->initialize(); $controller = new BackendSwitch(); return $controller->run(); }