File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -10556,6 +10556,8 @@ echo $router->getControllerName();
10556
10556
```php
10557
10557
const POSITION_FIRST = 0;
10558
10558
const POSITION_LAST = 1;
10559
+ const URI_SOURCE_GET_URL = 0;
10560
+ const URI_SOURCE_SERVER_REQUEST_URI = 1;
10559
10561
```
10560
10562
10561
10563
### Properties
@@ -10650,6 +10652,11 @@ protected $removeExtraSlashes = false;
10650
10652
*/
10651
10653
protected $routes;
10652
10654
10655
+ /**
10656
+ * @var int
10657
+ */
10658
+ protected $uriSource;
10659
+
10653
10660
/**
10654
10661
* @var bool
10655
10662
*/
@@ -10845,6 +10852,13 @@ public function getParams(): array;
10845
10852
Returns the processed parameters
10846
10853
10847
10854
10855
+ ```php
10856
+ public function getRewriteUri(): string;
10857
+ ```
10858
+ Get rewrite info. This info is read from $_GET["_url"].
10859
+ This returns '/' if the rewrite information cannot be read
10860
+
10861
+
10848
10862
```php
10849
10863
public function getRouteById( mixed $id ): RouteInterface | bool;
10850
10864
```
@@ -10960,12 +10974,30 @@ public function setKeyRouteNames( array $routeNames ): Router;
10960
10974
10961
10975
10962
10976
10977
+ ```php
10978
+ public function setUriSource( int $uriSource ): Router;
10979
+ ```
10980
+ Sets the URI source. One of the URI_SOURCE_* constants
10981
+
10982
+ ```php
10983
+ $router->setUriSource(
10984
+ Router::URI_SOURCE_SERVER_REQUEST_URI
10985
+ );
10986
+ ```
10987
+
10988
+
10963
10989
```php
10964
10990
public function wasMatched(): bool;
10965
10991
```
10966
10992
Checks if the router matches any of the defined routes
10967
10993
10968
10994
10995
+ ```php
10996
+ protected function extractRealUri( string $uri ): string;
10997
+ ```
10998
+
10999
+
11000
+
10969
11001
10970
11002
10971
11003
## Mvc\Router\Annotations
You can’t perform that action at this time.
0 commit comments