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

Commit 113a106

Browse files
committed
Merge pull request #745 from andrey1s/enchancer
doc ContentRepositoryEnhancer
2 parents 88d47ac + fa94b3f commit 113a106

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)