2022-11-15 12:57:14 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// src/Controller/DataImport.php
|
|
|
|
// Grab data from transfer app
|
|
|
|
|
|
|
|
namespace App\Controller\Routes\Front;
|
|
|
|
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
2023-01-08 14:28:25 -08:00
|
|
|
use App\Service\Auth;
|
|
|
|
use App\Service\Render;
|
2022-11-15 12:57:14 -08:00
|
|
|
|
|
|
|
class Index extends AbstractController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Route("/", name="index")
|
|
|
|
*/
|
2023-01-08 14:28:25 -08:00
|
|
|
public function showIndex(Request $request, Auth $auth, Render $render): Response
|
2022-11-15 12:57:14 -08:00
|
|
|
{
|
2023-01-08 14:28:25 -08:00
|
|
|
$check = $auth->status();
|
|
|
|
|
|
|
|
return $render->page([], "This is The Bad Space", "front/index.twig");
|
2022-11-15 12:57:14 -08:00
|
|
|
}
|
2022-12-12 17:42:40 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @Route("/knockknock", name="access")
|
|
|
|
*/
|
|
|
|
public function access(Request $request): Response
|
|
|
|
{
|
|
|
|
return $this->render("front/knock.twig", [
|
|
|
|
"title" => "Wipe Your feet",
|
|
|
|
]);
|
|
|
|
}
|
2022-11-15 12:57:14 -08:00
|
|
|
}
|