From c208077a18c4e36e18b105d4ebc9855181c02ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Thu, 11 Nov 2021 14:32:06 +0100 Subject: [PATCH] Routing: don't require to install doctrine/annotations to use attributes --- symfony/routing/6.0/config/packages/routing.yaml | 12 ++++++++++++ symfony/routing/6.0/config/routes.yaml | 7 +++++++ symfony/routing/6.0/manifest.json | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 symfony/routing/6.0/config/packages/routing.yaml create mode 100644 symfony/routing/6.0/config/routes.yaml create mode 100644 symfony/routing/6.0/manifest.json diff --git a/symfony/routing/6.0/config/packages/routing.yaml b/symfony/routing/6.0/config/packages/routing.yaml new file mode 100644 index 00000000..4b766ce5 --- /dev/null +++ b/symfony/routing/6.0/config/packages/routing.yaml @@ -0,0 +1,12 @@ +framework: + router: + utf8: true + + # Configure how to generate URLs in non-HTTP contexts, such as CLI commands. + # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands + #default_uri: http://localhost + +when@prod: + framework: + router: + strict_requirements: null diff --git a/symfony/routing/6.0/config/routes.yaml b/symfony/routing/6.0/config/routes.yaml new file mode 100644 index 00000000..5b102f60 --- /dev/null +++ b/symfony/routing/6.0/config/routes.yaml @@ -0,0 +1,7 @@ +controllers: + resource: ../src/Controller/ + type: annotation + +kernel: + resource: ../src/Kernel.php + type: annotation diff --git a/symfony/routing/6.0/manifest.json b/symfony/routing/6.0/manifest.json new file mode 100644 index 00000000..c0c66b64 --- /dev/null +++ b/symfony/routing/6.0/manifest.json @@ -0,0 +1,6 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "aliases": ["router"] +}