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

Error in cmf_routing_auto.yml example #841

Open
@dmeigs

Description

@dmeigs

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions