« Previous | Next » 

Revision dc6ec95e

IDdc6ec95ecfd21a49eb0f1707f847a3e377dc14b6
Parent 0354dc07
Child 2382549f

Added by Bastian Waidelich about 8 years ago

[FEATURE] Routing: Nested SubRoutes

With this change it's possible to load SubRoutes from other SubRoutes.
The syntax is the same as before with two additions:

1. You can specify a ``suffix`` in order to load a SubRoute from
a different file than the default ``Routes.yaml``
2. You can set ``variables`` that will be replaced in the merged SubRoutes

Usage:

-
name: 'Product'
uriPattern: 'products/<EntitySubroutes>'
defaults:
'@package': 'My.Package'
'@controller': 'Product'
subRoutes:
'EntitySubroutes':
package: 'MyPackage.RestTest' # load SubRoutes from My.Package/Configuration/Routes.Entity.yaml
suffix: 'Entity' # replace placeholder "<entityName>" with "product":
variables:
'entityName': 'product'

Change-Id: I9bc3519b359b32ec5b89edd47d3e3bce6f986749
Resolves: #43966
Releases: master

  • added
  • modified
  • copied
  • renamed
  • deleted