Update Router.php

This commit is contained in:
Hannes
2022-02-02 15:20:23 +01:00
committed by GitHub
parent a1d5f38af7
commit 01bad94af0
+4 -7
View File
@@ -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;
} }