debesha / doctrine-hydration-profiler-bundle
Information about hydration of doctrine entities at the profiler
Installs: 431 804
Dependents: 1
Suggesters: 0
Security: 0
Stars: 120
Watchers: 8
Forks: 14
Open Issues: 3
Type:symfony-bundle
Requires
- php: >=7.0
- doctrine/doctrine-bundle: ^1.2|^2.0
- doctrine/orm: ^2.2
- symfony/framework-bundle: ^2.1|^3.0|^4.0|^5.0|^6.0
- symfony/twig-bundle: ^2.0|^3.0|^4.0|^5.0|^6.0
- twig/twig: ^1.12|^2.0|^3.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
Bundle to get information about doctrine hydration performance
Purpose
Adds a section to web profile which lists all doctrine hydrations performed during generation of response.
Installation
Add this in your composer.json
"require-dev": { [...] "debesha/doctrine-hydration-profiler-bundle" : "~1.0@dev", },
Then run php composer.phar update
Next step is to register the bundle in AppKernel (app/AppKernel.php
)
if (in_array($this->getEnvironment(), array('dev', 'test'))) { [...] $bundles[] = new Debesha\DoctrineProfileExtraBundle\DebeshaDoctrineProfileExtraBundle(); }
Attention! The bundle MUST be included AFTER DoctrineBundle.
That's it.
Screenshots
Your profile gets a new section where you may get an information about how fast was hydrations made and how many entities was hydrated.