Skip to content

Commit 9751a0c

Browse files
committed
Add symfony profiler
1 parent 3e10a2c commit 9751a0c

File tree

7 files changed

+128
-2
lines changed

7 files changed

+128
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## Releases
99

10+
### [0.1.9] - 2023-06-25
11+
12+
* Add symfony profiler
13+
1014
### [0.1.8] - 2023-06-24
1115

1216
* Add new docker setup with PHP 8.2, Apache 2.4, Cron and Supervisord

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
"symfony/css-selector": "6.3.*",
6666
"symfony/http-client": "6.3.*",
6767
"symfony/maker-bundle": "^1.48",
68-
"symfony/phpunit-bridge": "^6.3"
68+
"symfony/phpunit-bridge": "^6.3",
69+
"symfony/stopwatch": "6.3.*",
70+
"symfony/web-profiler-bundle": "6.3.*"
6971
},
7072
"autoload": {
7173
"psr-4": {

composer.lock

Lines changed: 82 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
1212
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
1313
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
14+
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
1415
];

config/packages/web_profiler.yaml

Lines changed: 17 additions & 0 deletions
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

Lines changed: 8 additions & 0 deletions
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

symfony.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,18 @@
238238
"files": [
239239
"config/packages/validator.yaml"
240240
]
241+
},
242+
"symfony/web-profiler-bundle": {
243+
"version": "6.3",
244+
"recipe": {
245+
"repo": "github.com/symfony/recipes",
246+
"branch": "main",
247+
"version": "6.1",
248+
"ref": "e42b3f0177df239add25373083a564e5ead4e13a"
249+
},
250+
"files": [
251+
"config/packages/web_profiler.yaml",
252+
"config/routes/web_profiler.yaml"
253+
]
241254
}
242255
}

0 commit comments

Comments
 (0)