symfony-cmf/symfony-cmf-docs

Error in cmf_routing_auto.yml example

dmeigs opened this issue · 1 comments

The "Routing and Automatic Routing" tutorial says how to set up src/AppBundle/Resources/config/cmf_routing_auto.yml, but that configuration is in error. Specifically, the line:

uri_schema: /page/{title}

should be replaced with:

definitions:
- { uri_schema: '/post/{date}/{title}' }

The YmlFileLoader class (Symfony\Cmf\Component\RoutingAuto\Mapping\Loader\YmlFileLoader) requires the definitions key and throws an error when using the config shown in the docs.

@dantleech can you do something here?