Skip to content

Commit 6ff6857

Browse files
committed
3132: Added profiler bundle in dev
1 parent 647e228 commit 6ff6857

File tree

7 files changed

+660
-497
lines changed

7 files changed

+660
-497
lines changed

composer.json

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696
"psalm/plugin-symfony": "^5.1",
9797
"symfony/maker-bundle": "^1.52",
9898
"symfony/phpunit-bridge": "^7.0",
99+
"symfony/stopwatch": "6.4.*",
100+
"symfony/web-profiler-bundle": "6.4.*",
99101
"vimeo/psalm": "^5.16",
100102
"weirdan/doctrine-psalm-plugin": "^2.9"
101103
}

composer.lock

+617-495
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
88
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
99
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
10+
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
1011
];

config/packages/web_profiler.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
when@dev:
2+
web_profiler:
3+
toolbar: true
4+
intercept_redirects: false
5+
6+
framework:
7+
profiler:
8+
only_exceptions: false
9+
collect_serializer_data: true
10+
11+
when@test:
12+
web_profiler:
13+
toolbar: false
14+
intercept_redirects: false
15+
16+
framework:
17+
profiler: { collect: false }

config/routes/web_profiler.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
when@dev:
2+
web_profiler_wdt:
3+
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
4+
prefix: /_wdt
5+
6+
web_profiler_profiler:
7+
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
8+
prefix: /_profiler

docker-compose.override.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ services:
2525
# Scope hosting by path prefix to allow shared hosting with legacy EventDB
2626
# 'https://api.detskeriaarhus.dk/api/' -> Legacy EventDB
2727
# 'https://api.detskeriaarhus.dk/api/v2/' -> EventDB v2
28-
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_DOMAIN}`) && PathPrefix(`${APP_PATH_PREFIX}`)"
29-
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`) && PathPrefix(`${APP_PATH_PREFIX}`)"
28+
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_DOMAIN}`) && (PathPrefix(`${APP_PATH_PREFIX}`) || PathPrefix(`/_wdt`) || PathPrefix(`/_profiler`))"
29+
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`) && (PathPrefix(`${APP_PATH_PREFIX}`) || PathPrefix(`/_wdt`) || PathPrefix(`/_profiler`))"
3030

3131
elasticsearch:
3232
image: elasticsearch:8.13.0

symfony.lock

+13
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,18 @@
180180
"files": [
181181
"config/packages/validator.yaml"
182182
]
183+
},
184+
"symfony/web-profiler-bundle": {
185+
"version": "6.4",
186+
"recipe": {
187+
"repo": "github.com/symfony/recipes",
188+
"branch": "main",
189+
"version": "6.1",
190+
"ref": "e42b3f0177df239add25373083a564e5ead4e13a"
191+
},
192+
"files": [
193+
"config/packages/web_profiler.yaml",
194+
"config/routes/web_profiler.yaml"
195+
]
183196
}
184197
}

0 commit comments

Comments
 (0)