Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 783 Bytes

routing.md

File metadata and controls

28 lines (20 loc) · 783 Bytes

Routing configuration

If you already configured the security firewalls it's now time to configure the routing.

Note: A section needs to be at the root of importing (eg. config/routes.yaml).

Route loader

Instead of importing your routes directly, you import them trough the app_section route loader.

The syntax for a resource is as follow: section-name#actual-resource, or section-name:type#actual-resource if you need to import with a specific resource type.

# config/routes.yml

_app_frontend:
    resource: 'frontend:yml#@AppCoreBundle/Resources/config/routing/frontend.yml'
    type: app_section

_app_backend:
    resource: 'backend#@AppCoreBundle/Resources/config/routing/backend.yml'
    type: app_section