Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit fa94b3f

Browse files
andrey1sandrey1s
authored andcommitted
add doc ContentRepositoryEnhancer
1 parent 9886ab7 commit fa94b3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/routing/dynamic.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ do not exist yet:
100100
keys.
101101
* ``FieldPresenceEnhancer``: If a field is present in the route match, sets an
102102
other field to a specified value if that field is not set yet.
103+
* ``ContentRepositoryEnhancer``: If the source field is present in the route match,
104+
sets target field to the сontent returned by the ``ContentRepositoryInterface`` with
105+
value of the source field, if target field is not yet set.
103106

104107
You can also create your own route enhancer by creating a class which
105108
implements ``Symfony\Cmf\Component\Routing\Enhancer\RouteEnhancerInterface``.

0 commit comments

Comments
 (0)