You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can now parse URI like `/assets/:type/(.+)` where:
* :type is a named parameter (can be "img", "css" or "js" in the example)
* (.+) is global pattern (represent the path to the asset in the example)
Global patterns are accessed by position and named parameters are accessed by name:
```php
$params = $req->uri->getParams();
$assetType = $params['type']; // Get the value of `:type` in the URI
$assetPath = $params[1]; // Get the value of `(.+)` in the URI
// Note that the position is 1 because `:type` use the position 0
```
0 commit comments