- Some bugfixes linked to attributes
This commit is contained in:
parent
02c0b2d432
commit
3622e11fcc
|
@ -6,7 +6,7 @@
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Dave Mc Nicoll",
|
"name": "Dave Mc Nicoll",
|
||||||
"email": "mcndave@gmail.com"
|
"email": "info@mcnd.ca"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace Notes\Route\Attribute\Object;
|
namespace Notes\Route\Attribute\Object;
|
||||||
|
|
||||||
#[\Attribute(\Attribute::TARGET_CLASS)]
|
#[\Attribute(\Attribute::TARGET_CLASS)]
|
||||||
class Route implements \Notes\Annotation {
|
class Route implements \Notes\Attribute {
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public string|array $method = [ "GET", "POST" ],
|
public string|array $method = [ "GET", "POST" ],
|
||||||
public string $base = "",
|
public string $base = "",
|
||||||
|
|
Loading…
Reference in New Issue