Skip to content

Commit b38b288

Browse files
[symfony/routing] Auto-register routes from attributes found on controller services
1 parent 45fe0f9 commit b38b288

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
framework:
2+
router:
3+
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
4+
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
5+
#default_uri: http://localhost
6+
7+
when@prod:
8+
framework:
9+
router:
10+
strict_requirements: null
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
controllers:
2+
resource: attributes
3+
type: tagged_services

symfony/routing/7.4/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"aliases": ["router"],
6+
"conflict": {
7+
"symfony/framework-bundle": "<7.0"
8+
}
9+
}

0 commit comments

Comments
 (0)