Added a new matchRouteName method
This commit is contained in:
		
							parent
							
								
									6fcfd20aed
								
							
						
					
					
						commit
						4d6a2f2681
					
				| @ -46,4 +46,9 @@ class Route implements \Notes\Annotation { | |||||||
|                 : |                 : | ||||||
|                 "/" . ltrim($this->route, "/"), "/"), '/'); |                 "/" . ltrim($this->route, "/"), "/"), '/'); | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     public function matchRouteName(string $name) : bool | ||||||
|  |     { | ||||||
|  |         return strtolower($this->name) === strtolower($name); | ||||||
|  |     } | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user