remove src folder

This commit is contained in:
Gregory Letellier
2023-11-14 12:03:02 +01:00
parent db32b2e046
commit 8bd8e86748
12 changed files with 416 additions and 628 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class TestCommand extends Command
{
protected static $defaultName = 'app:test';
protected static $defaultDescription = 'Test.';
protected function configure(): void
{
$this->setHelp('Test');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln("test");
return Command::SUCCESS;
}
}

16
app/Controllers/Home.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
namespace App\Controllers;
use Kletellier\Framework\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);
}
}