chore: complete update
This commit is contained in:
@@ -4,15 +4,16 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Attributes;
|
||||
|
||||
use App\Framework\Http\Method;
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(\Attribute::TARGET_METHOD, \Attribute::IS_REPEATABLE)]
|
||||
|
||||
class Route
|
||||
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
|
||||
final readonly class Route
|
||||
{
|
||||
public function __construct(
|
||||
public string $path,
|
||||
public string $method = 'GET',
|
||||
public Method $method = Method::GET,
|
||||
public ?string $name = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user