Skip to content

Commit 46b07e8

Browse files
committed
fixes.
1 parent 753ed95 commit 46b07e8

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Services/Utils/DispatchRoute.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ private function getRouteInfo(string $uri) : array
327327
'Route collection not initialized. Use setRoutes method before.'
328328
);
329329
}
330-
// Удалить служебные роуты.
331-
$this->routes->remove(['index', 'remove_trailing_slash', 'not-found']);
330+
332331
$matcher = new UrlMatcher($this->routes, $this->requestContext);
333332

334333
try {

Services/Utils/RouteChecker.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ public function __construct(
6565
*/
6666
public function isLiveRoute(string $uri): bool
6767
{
68-
// Удалить служебные роуты.
69-
$this->routeCollection->remove(['index', 'remove_trailing_slash', 'not-found']);
7068
$matcher = new UrlMatcher($this->routeCollection, $this->requestContext);
7169

7270
try {
@@ -90,8 +88,6 @@ public function isLiveRoute(string $uri): bool
9088
*/
9189
public function getRouteInfo(string $uri) : array
9290
{
93-
// Удалить служебные роуты.
94-
$this->routeCollection->remove(['index', 'remove_trailing_slash', 'not-found']);
9591
$matcher = new UrlMatcher($this->routeCollection, $this->requestContext);
9692

9793
try {
@@ -111,8 +107,6 @@ public function getRouteInfo(string $uri) : array
111107
*/
112108
public function getRouteInfoReference(string $uri, array $options = []) : ?ControllerReference
113109
{
114-
// Удалить служебные роуты.
115-
$this->routeCollection->remove(['index', 'remove_trailing_slash', 'not-found']);
116110
$matcher = new UrlMatcher($this->routeCollection, $this->requestContext);
117111

118112
try {

0 commit comments

Comments
 (0)