Skip to content

Commit 42f1afc

Browse files
committed
docs: add docs
1 parent 4dc421b commit 42f1afc

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

user_guide_src/source/changelogs/v4.3.0.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ Commands
208208
- Added ``spark filter:check`` command to check the filters for a route. See :ref:`Controller Filters <spark-filter-check>` for the details.
209209
- Added ``spark make:cell`` command to create a new Cell file and its view. See :ref:`generating-cell-via-command` for the details.
210210
- Now ``spark routes`` command shows route names. See :ref:`URI Routing <routing-spark-routes>`.
211+
- Now ``spark routes`` command can sort the output by Handler.
212+
See :ref:`routing-spark-routes-sort-by-handler`.
213+
211214
- Help information for a spark command can now be accessed using the ``--help`` option (e.g. ``php spark serve --help``)
212215
- Added methods ``CLI::promptByMultipleKeys()`` to support multiple value in input, unlike ``promptByKey()``. See :ref:`prompt-by-multiple-keys` for details.
213216
- HTTP/3 is now considered a valid protocol.

user_guide_src/source/incoming/routing.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@ Since v4.3.0, the *Name* column shows the route name. ``»`` indicates the name
804804

805805
.. important:: The system is not perfect. If you use Custom Placeholders, *Filters* might not be correct. If you want to check filters for a route, you can use :ref:`spark filter:check <spark-filter-check>` command.
806806

807+
Auto Routing (Improved)
808+
-----------------------
809+
807810
When you use Auto Routing (Improved), the output is like the following:
808811

809812
.. code-block:: none
@@ -818,6 +821,9 @@ The *Method* will be like ``GET(auto)``.
818821

819822
``/..`` in the *Route* column indicates one segment. ``[/..]`` indicates it is optional.
820823

824+
Auto Routing (Legacy)
825+
---------------------
826+
821827
When you use Auto Routing (Legacy), the output is like the following:
822828

823829
.. code-block:: none
@@ -833,3 +839,14 @@ The *Method* will be ``auto``.
833839
``[/...]`` in the *Route* column indicates any number of segments.
834840

835841
.. note:: When auto-routing is enabled, if you have the route ``home``, it can be also accessd by ``Home``, or maybe by ``hOme``, ``hoMe``, ``HOME``, etc. But the command shows only ``home``.
842+
843+
.. _routing-spark-routes-sort-by-handler:
844+
845+
Sort by Handler
846+
---------------
847+
848+
.. versionadded:: 4.3.0
849+
850+
You can sort the routes by *Handler*::
851+
852+
> php spark routes -h

0 commit comments

Comments
 (0)