Skip to content

Commit

Permalink
TASK: Tweak attribute routing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich authored Oct 11, 2024
1 parent 7136a1f commit 69e60a9
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ It also is possible to specify a `providerFactory` and (optional) `providerOptio
You can use the ``flow:routing:list`` command to list all routes which are currently active, see `CLI`_

Subroutes from Annotations
--------------------------
Subroutes from Attributes
-------------------------

The ``Flow\Route`` attribute allows to define routes directly on the affected method.
(Currently only ActionController are supported https://github.com/neos/flow-development-collection/issues/3335)
Expand All @@ -774,8 +774,7 @@ The ``Flow\Route`` attribute allows to define routes directly on the affected me
}
}
To find the annotation and tp specify the order of routes this has to be used together with the
`\Neos\Flow\Mvc\Routing\AttributeRoutesProviderFactory` as `providerFactory` in Setting `Neos.Flow.mvc.routes`
In order to make attribute routes discoverable and to specify their order relative to explicitly configured routes, the `providerFactory` has to be specified in Setting `Neos.Flow.mvc.routes`:

.. code-block:: yaml
Expand Down

0 comments on commit 69e60a9

Please sign in to comment.