- Added a simple verification for route name

This commit is contained in:
Dave M. 2022-11-24 19:59:49 +00:00
parent 4d6a2f2681
commit 3bebb66ad4
1 changed files with 4 additions and 0 deletions

View File

@ -51,4 +51,8 @@ class Route implements \Notes\Annotation {
{
return strtolower($this->name) === strtolower($name);
}
public function isRoute(string $name) {
return $this->name === $name;
}
}