add app folder

This commit is contained in:
Gregory Letellier
2023-11-14 10:52:52 +01:00
parent 9e6afc997a
commit a597f2e883
8 changed files with 16 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Commands;
namespace Kletellier\MiniWeb\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;

View File

@@ -1,14 +1,14 @@
<?php
namespace App\Controllers;
namespace Kletellier\MiniWeb\Controllers;
use App\Core\Controllers\Controller;
use Kletellier\MiniWeb\Core\Controllers\Controller;
use DateTimeZone;
class Home extends Controller
{
public function index()
{
{
$date = new \DateTime('now', new DateTimeZone("Europe/Paris"));
$html = $this->renderView("index", ["date" => $date->format("d/m/Y H:i:s")]);
$this->render($html);

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Core\Controllers;
namespace Kletellier\MiniWeb\Core\Controllers;
use App\Core\Kernel\Templating;
use Kletellier\MiniWeb\Core\Kernel\Templating;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

View File

@@ -1,12 +1,10 @@
<?php
namespace App\Core\Kernel;
namespace Kletellier\MiniWeb\Core\Kernel;
use App\Core\Routing\Router;
use Kletellier\MiniWeb\Core\Routing\Router;
use Dotenv\Dotenv;
use Kletellier\PdoWrapper\Connection;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Kletellier\PdoWrapper\Connection;
class Application
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Core\Kernel;
namespace Kletellier\MiniWeb\Core\Kernel;
use eftec\bladeone\BladeOne;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Core\Routing;
namespace Kletellier\MiniWeb\Core\Routing;
use Bramus\Router\Router as RouterRouter;