This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,8 @@ redirections and locales.
266
266
267
267
Notes:
268
268
269
- * RouteObjectInterface: The provided documents implement this interface to map content to routes
269
+ * RouteObjectInterface: The provided documents implement this interface to map content to routes and to (optional) provide
270
+ a custom route name instead of the symfony core compatible route name.
270
271
* Redirections: This bundle provides a RedirectController.
271
272
272
273
TODO: see DependencyInjection/Configuration.php of this bundle. I could not figure out how to set
Original file line number Diff line number Diff line change @@ -79,7 +79,15 @@ The match method of the DynamicRouter does the following steps
79
79
RouteObjectInterface
80
80
~~~~~~~~~~~~~~~~~~~~
81
81
82
- Routes that implement this interface are linked to a content document.
82
+ Routes that implement this interface can be linked to a content document using
83
+ the ``getRouteContent `` method. If non-null, this content is passed to the
84
+ controller. If there is no specific content for this route this may return null.
85
+
86
+ Furthermore, routes that implement this interface can also provide a custom route
87
+ name. The key returned by ``getRouteKey `` will be used as route name instead of
88
+ the Symfony core compatible route name and can contain any characters. This allows
89
+ you, for example, to set a path as the route name.
90
+
83
91
All routes still need to extend the base class ``Symfony\Component\Routing\Route ``
84
92
85
93
Redirections
You can’t perform that action at this time.
0 commit comments