sidus / doctrine-debug-bundle
为 Symfony 性能分析器中的 Doctrine 查询添加堆栈跟踪
v1.0.2
2018-06-28 10:58 UTC
This package is auto-updated.
Last update: 2024-09-08 22:29:46 UTC
README
简介
此包为性能分析器中的每个 Doctrine 查询添加堆栈跟踪。
安装
使用 Composer 需求此包
$ composer require sidus/doctrine-debug-bundle "~1.0"
将包添加到 AppKernel.php
<?php use Symfony\Component\HttpKernel\Kernel; class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... ]; if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { // ... if ('dev' === $this->getEnvironment()) { $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); $bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle(); // HERE! $bundles[] = new Sidus\DoctrineDebugBundle\SidusDoctrineDebugBundle(); } } return $bundles; } // ... }
变更日志
v1.0.2
不再需要安装 xdebug。
v1.0.1
修复与 Web Profiler 4 的兼容性问题