Skip to content

Commit 08033f9

Browse files
committed
fix: Apply suggestions
1 parent 90baec3 commit 08033f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

user_guide_src/source/incoming/routing.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,8 +1047,9 @@ This method returns a list of filters that are currently active for the route be
10471047
Getting Matched Route Options for the Current Route
10481048
===================================================
10491049

1050-
After creating a route, it may have additional parameters (they are described above): ``filter``, ``namespace``, ``hostname``, ``subdomain``, ``offset``, ``priority``, ``as``, ``redirect``.
1051-
To access these parameters, call ``Router::getMatchedRouteOptions()``. Example of the returned array:
1050+
When we're defining routes, they may have optional parameters: ``filter``, ``namespace``, ``hostname``, ``subdomain``, ``offset``, ``priority``, ``as``. All of them were described earlier above.
1051+
Additionally, if we use ``addRedirect()`` we can also expect the ``redirect`` key.
1052+
To access the values of these parameters, we can call ``Router::getMatchedRouteOptions()``. Here is an example of the returned array:
10521053

10531054
.. literalinclude:: routing/074.php
10541055

user_guide_src/source/incoming/routing/074.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
// (
1616
// [filter] => api-auth
1717
// [namespace] => App\API\v1
18-
// [hostname] => accounts.example.com
19-
// [subdomain] => media
18+
// [hostname] => example.com
19+
// [subdomain] => api
2020
// [offset] => 1
2121
// [priority] => 1
2222
// [as] => api:auth
23-
// [redirect] => 302
2423
// )

0 commit comments

Comments
 (0)