move code to repository root
This commit is contained in:
parent
47e227257c
commit
9ce2c0ae4c
35 changed files with 2025 additions and 0 deletions
20
src/Infrastructure/WebApp/Route/AttributeRouteCollector.php
Normal file
20
src/Infrastructure/WebApp/Route/AttributeRouteCollector.php
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue