mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 23:12:11 +00:00
Update Router.php
This commit is contained in:
@@ -38,9 +38,9 @@ class Router
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines all data from current processing route.
|
* Defines all data from current processing route.
|
||||||
* @var array
|
* @var ILoadableRoute
|
||||||
*/
|
*/
|
||||||
protected $currentProcessingRoute = [];
|
protected $currentProcessingRoute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All added routes
|
* All added routes
|
||||||
@@ -439,9 +439,6 @@ class Router
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the current processing route after handle all possible routes */
|
|
||||||
$this->currentProcessingRoute = [];
|
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->handleException($e);
|
$this->handleException($e);
|
||||||
}
|
}
|
||||||
@@ -943,9 +940,9 @@ class Router
|
|||||||
/**
|
/**
|
||||||
* Get the current processing route details.
|
* Get the current processing route details.
|
||||||
*
|
*
|
||||||
* @return array
|
* @return ILoadableRoute
|
||||||
*/
|
*/
|
||||||
public function getCurrentProcessingRoute(): array
|
public function getCurrentProcessingRoute(): ILoadableRoute
|
||||||
{
|
{
|
||||||
return $this->currentProcessingRoute;
|
return $this->currentProcessingRoute;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user