chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Application\Auth;
use App\Framework\Attributes\Route;
use App\Framework\Auth\Auth;
use App\Framework\CommandBus\CommandBus;
use App\Framework\Http\Method;
use App\Framework\Router\Result\ViewResult;
class ShowLogin
{
public function __construct(
private CommandBus $commandBus,
)
{
}
#[Auth]
#[Route('/login')]
public function __invoke()
{
return new ViewResult('loginform');
}
#[Auth]
#[Route('/login', Method::POST)]
public function login(LoginRequest $request)
{
$login = new LoginUser($request->email, $request->password);
$this->commandBus->dispatch($login);
dd($request);
}
}