move code to repository root

This commit is contained in:
lubiana 2023-01-25 22:09:06 +01:00
parent 47e227257c
commit 9ce2c0ae4c
No known key found for this signature in database
35 changed files with 2025 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?php declare(strict_types=1);
namespace Lubian\AttributeMagic\Infrastructure\WebApp\Route;
use Lubian\AttributeMagic\Infrastructure\Event\AsListener;
use Lubian\AttributeMagic\Infrastructure\Finder;
final class AttributeRouteCollector
{
public function __construct(
private readonly Finder $finder
) {
}
#[AsListener(CollectRoutes::class)]
public function collect(CollectRoutes $event): void
{
$event->routes = $this->finder->getHandlers();
}
}