Skip to content

Commit e627c06

Browse files
committed
minor #854 Sort routes.yaml and composer.json (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- Sort `routes.yaml` and `composer.json` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT agree `@chr`-hertel ? Commits ------- 33a8d68 Sort `routes.yaml` and `composer.json`
2 parents add708d + 33a8d68 commit e627c06

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

demo/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ext-iconv": "*",
1010
"codewithkyrian/chromadb-php": "^0.4.0",
1111
"league/commonmark": "^2.7",
12+
"mcp/sdk": "@dev",
1213
"mrmysql/youtube-transcript": "^0.0.5",
1314
"php-http/discovery": "^1.20",
1415
"runtime/frankenphp-symfony": "^0.2.0",
@@ -23,7 +24,6 @@
2324
"symfony/flex": "^2.5",
2425
"symfony/framework-bundle": "~7.3.0",
2526
"symfony/http-client": "~7.3.0",
26-
"mcp/sdk": "@dev",
2727
"symfony/mcp-bundle": "@dev",
2828
"symfony/monolog-bundle": "^3.10",
2929
"symfony/runtime": "~7.3.0",

demo/config/routes.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,30 @@ index:
44
defaults:
55
template: 'index.html.twig'
66

7-
blog:
8-
path: '/blog'
7+
audio:
8+
path: '/audio'
99
controller: 'Symfony\Bundle\FrameworkBundle\Controller\TemplateController'
1010
defaults:
1111
template: 'chat.html.twig'
12-
context: { chat: 'blog' }
12+
context: { chat: 'audio' }
1313

14-
audio:
15-
path: '/audio'
14+
blog:
15+
path: '/blog'
1616
controller: 'Symfony\Bundle\FrameworkBundle\Controller\TemplateController'
1717
defaults:
1818
template: 'chat.html.twig'
19-
context: { chat: 'audio' }
19+
context: { chat: 'blog' }
2020

21-
youtube:
22-
path: '/youtube'
21+
stream:
22+
path: '/stream'
2323
controller: 'Symfony\Bundle\FrameworkBundle\Controller\TemplateController'
2424
defaults:
2525
template: 'chat.html.twig'
26-
context: { chat: 'youtube' }
26+
context: { chat: 'stream' }
27+
28+
stream_assistant_reply:
29+
path: '/stream/assistant-reply'
30+
controller: 'App\Stream\TwigComponent::streamContent'
2731

2832
video:
2933
path: '/video'
@@ -39,16 +43,12 @@ wikipedia:
3943
template: 'chat.html.twig'
4044
context: { chat: 'wikipedia' }
4145

42-
stream:
43-
path: '/stream'
46+
youtube:
47+
path: '/youtube'
4448
controller: 'Symfony\Bundle\FrameworkBundle\Controller\TemplateController'
4549
defaults:
4650
template: 'chat.html.twig'
47-
context: { chat: 'stream' }
48-
49-
stream_assistant_reply:
50-
path: '/stream/assistant-reply'
51-
controller: 'App\Stream\TwigComponent::streamContent'
51+
context: { chat: 'youtube' }
5252

5353
# Load MCP routes conditionally based on configuration
5454
_mcp:

0 commit comments

Comments
 (0)