From 513f693819832e7f550f09ca3570b71b446cdd6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=20Waterb=C3=B6hr?= Date: Wed, 8 Nov 2023 16:14:51 +0100 Subject: [PATCH 1/2] Use symfony/security-bundle as dependency instead of just symfony/security-core --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 078d9f3a..1abc9ed5 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "symfony/console": "^4.4|^5.0|^6.0", "symfony/dependency-injection": "^4.4|^5.0|^6.0", "symfony/framework-bundle": "^4.4|^5.0|^6.0", - "symfony/security-core": "^4.4|^5.0|^6.0" + "symfony/security-bundle": "^4.4|^5.0|^6.0" }, "require-dev": { "phpunit/phpunit": "^9.5", From 65343ce3a2e3757483acf97f600018bc69360100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=20Waterb=C3=B6hr?= Date: Wed, 8 Nov 2023 16:17:00 +0100 Subject: [PATCH 2/2] Fix DataCollector to return array instead od Data as expected --- DataCollector/PropelDataCollector.php | 8 ++------ Resources/views/Collector/propel.html.twig | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/DataCollector/PropelDataCollector.php b/DataCollector/PropelDataCollector.php index 3f5fc7dd..adbd0962 100644 --- a/DataCollector/PropelDataCollector.php +++ b/DataCollector/PropelDataCollector.php @@ -14,6 +14,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\DataCollector\DataCollector; +use Symfony\Component\VarDumper\Cloner\Data; /** * The PropelDataCollector collector class collects information. @@ -50,12 +51,7 @@ public function getName(): string return 'propel'; } - /** - * Returns queries. - * - * @return array Queries - */ - public function getQueries(): array + public function getQueries(): Data { return $this->data['queries']; } diff --git a/Resources/views/Collector/propel.html.twig b/Resources/views/Collector/propel.html.twig index e3287db3..cfe522ee 100644 --- a/Resources/views/Collector/propel.html.twig +++ b/Resources/views/Collector/propel.html.twig @@ -41,13 +41,23 @@ {# the panel content #}