chore: lots of changes
This commit is contained in:
24
src/Framework/Router/RouteMatchSuccess.php
Normal file
24
src/Framework/Router/RouteMatchSuccess.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Router;
|
||||
|
||||
use App\Framework\Core\DynamicRoute;
|
||||
use App\Framework\Core\StaticRoute;
|
||||
|
||||
final readonly class RouteMatchSuccess implements RouteMatch
|
||||
{
|
||||
#public string $controller;
|
||||
#public string $action;
|
||||
#public array $params;
|
||||
public function __construct(
|
||||
public DynamicRoute|StaticRoute $route
|
||||
) {
|
||||
}
|
||||
|
||||
public function isMatch(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user