Skip to content

Commit

Permalink
Fix PropelDataCollector
Browse files Browse the repository at this point in the history
* Use symfony/security-bundle as dependency instead of just  symfony/security-core
* Fix DataCollector to return Data instead of array
  • Loading branch information
mwaterboehr authored Nov 9, 2023
1 parent fe58f09 commit ddc94d6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
8 changes: 2 additions & 6 deletions DataCollector/PropelDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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'];
}
Expand Down
14 changes: 12 additions & 2 deletions Resources/views/Collector/propel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,23 @@
{# the panel content #}
<style type="text/css">
.SQLKeyword {
color: blue;
color: #1750eb;
white-space: nowrap;
}
.theme-dark .SQLKeyword {
color: #54aeff;
}
.SQLName {
color: #464646;
white-space: nowrap;
}
.theme-dark .SQLName {
color: #fff;
}
.SQLComment {
color: gray;
display: block;
Expand Down Expand Up @@ -141,5 +151,5 @@
</table>
{% endif %}

{{ render(controller('PropelBundle:Panel:configuration')) }}
{{ render(controller('Propel\\Bundle\\PropelBundle\\Controller\\PanelController::configurationAction')) }}
{% endblock %}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ddc94d6

Please sign in to comment.