定制 sidus/doctrine-debug-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sidus/doctrine-debug-bundle

最新稳定版本:v1.0.2

Composer 安装命令:

composer require sidus/doctrine-debug-bundle

包简介

Adds stack trace to Doctrine queries in Symfony profiler

README 文档

README

Introduction

This bundle adds a stack trace to each doctrine query in the profiler.

Example

Installation

Require the bundle with composer:

$ composer require sidus/doctrine-debug-bundle "~1.0"

Add the bundle to 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;
    }
    // ...
}

Changelog

v1.0.2

Doesn't require xdebug to be installed anymore.

v1.0.1

Fixing compatibility with Web Profiler 4

统计信息

  • 总下载量: 427.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 4
  • Forks: 5
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-07