File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments