<?php
namespace Bidcoz\Bundle\FrontendBundle\Controller;
use Bidcoz\Bundle\CoreBundle\Controller\CoreController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
class MarketingController extends CoreController
{
/**
* @Route("/", name="homepage")
*/
public function indexAction(Request $request)
{
// Hack
$host = $request->server->get('HTTP_HOST');
if (isset($this->hostRedirectMap[$host])) {
return $this->returnRedirect($this->hostRedirectMap[$host]);
}
return $this->render('@BidcozFrontend/Marketing/homepage.html.twig');
}
/**
* @Route("/dashboard", name="dashboard_redirect")
*/
public function dashboardAction(Request $request)
{
$slug = $request->request->get('slug');
return $this->redirectToRoute('organization_manage_dashboard', [
'orgSlug' => $slug,
]);
}
}