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

Error in cmf_routing_auto.yml example #841

Open
dmeigs opened this issue Nov 10, 2017 · 1 comment
Open

Error in cmf_routing_auto.yml example #841

dmeigs opened this issue Nov 10, 2017 · 1 comment
Assignees

Comments

@dmeigs
Copy link

dmeigs commented Nov 10, 2017

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.

@ElectricMaxxx
Copy link
Member

@dantleech can you do something here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants