Skip to content

Commit

Permalink
Merge pull request #3398 from neos/task/tweak-attribute-routing-docs
Browse files Browse the repository at this point in the history
TASK: Tweak attribute routing docs
  • Loading branch information
bwaidelich authored Nov 13, 2024
2 parents dfc75e7 + 69e60a9 commit 3294ea5
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 3294ea5

Please sign in to comment.