Compare commits

..

No commits in common. "2a6ec3cd1b251312c4db1005e6936c0c39d2d5d6" and "61b84bfd09c3be4f05ef1366758928892600ff64" have entirely different histories.

View File

@ -2,8 +2,6 @@
namespace Notes\Route\Attribute\Method;
use Psr\Http\Message\ServerRequestInterface;
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD)]
class Route implements \Notes\Attribute {
public function __construct(
@ -14,7 +12,6 @@ class Route implements \Notes\Attribute {
public ? string $class = null,
public ? string $classMethod = null,
public bool $currentRoute = false,
public string $description = "",
) {}
public function getRoute() : string
@ -30,18 +27,6 @@ class Route implements \Notes\Attribute {
return strtolower($this->name) === strtolower($name);
}
public function match(mixed $name) : bool
{
foreach((array) $name as $item) {
if ( fnmatch($item, $this->name) ) {
return true;
}
}
return false;
}
public function isRoute(string $name) {
return $this->name === $name;
}