move code to repository root
This commit is contained in:
parent
47e227257c
commit
9ce2c0ae4c
35 changed files with 2025 additions and 0 deletions
24
src/Handler/Lol.php
Normal file
24
src/Handler/Lol.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Lubian\AttributeMagic\Handler;
|
||||
|
||||
use Lubian\AttributeMagic\Infrastructure\Event\Dispatcher;
|
||||
use Lubian\AttributeMagic\Infrastructure\Route\AsHandler;
|
||||
use Lubian\AttributeMagic\Infrastructure\Route\HttpMethod;
|
||||
use Lubian\AttributeMagic\Listener\LauschEvent;
|
||||
|
||||
final class Lol
|
||||
{
|
||||
public function __construct(
|
||||
private readonly Dispatcher $dispatcher,
|
||||
) {
|
||||
}
|
||||
|
||||
#[AsHandler(HttpMethod::GET, '/')]
|
||||
public function lol(): void
|
||||
{
|
||||
$event = new LauschEvent('aaaaaaaalso');
|
||||
$this->dispatcher->dispatch($event);
|
||||
echo $event->message;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue