shamotj / pdo-profiler-bundle
PDO Profiler for Symfony
Package info
github.com/shamotj/pdo-profiler-bundle
Type:symfony-bundle
pkg:composer/shamotj/pdo-profiler-bundle
dev-master
2018-12-18 16:01 UTC
Requires
- php: >=7.0.0
- ext-pdo: *
- symfony/profiler-pack: *
This package is not auto-updated.
Last update: 2026-03-05 22:26:25 UTC
README
This code is based on sorien/silex-dbal-profiler and maximebf/debugbar.
Install
Composer
composer require shamotj/pdo-profiler-bundle
That should add dependency into config/bundles.php. If you have service which typehints to PDO, you should be fine. If not, you need to pass PDO instance to constructor. This can be done by overriding services.yml in your global file.
For example like this:
pdo_data_collector: class: Shamotj\PdoProfilerBundle\DataCollector\PdoDataCollector arguments: ["@=service('App\\\\Service\\\\DbService').getPDO()"] public: false tags: - name: data_collector id: 'pdo_data_collector' template: 'ShamotjPdoProfilerBundle:Collector:db.html.twig'