shamotj / pdo-profiler-bundle
PDO Profiler for Symfony
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.0
- ext-pdo: *
- symfony/profiler-pack: *
This package is not auto-updated.
Last update: 2024-11-14 16:28:34 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'