mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[FEATURE] Added getIdentifier method to RouterBase
- Fixed getter for getLoadedRoute
This commit is contained in:
@@ -120,8 +120,11 @@ class RouterBase {
|
||||
/**
|
||||
* @return RouterEntry
|
||||
*/
|
||||
public function getLoadedClass() {
|
||||
return $this->loadedClass;
|
||||
public function getLoadedRoute() {
|
||||
if(!($this->loadedRoute instanceof RouterGroup)) {
|
||||
return $this->loadedRoute;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user