mini-symfony/companion-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mini-symfony/companion-bundle

Composer 安装命令:

composer require mini-symfony/companion-bundle

包简介

This package adds several helpers, like the debug:container command

README 文档

README

This bundle can also be used with the MicroFramework bundle

Debug tools

Console commands

  • debug:container
  • debug:router
  • debug:event-dispatcher

Debug bar (disabled by default)

With the debug bar you can gather information about the following:

  • Environment information
  • Current route
  • Request information
  • Queries
  • Events
  • Timeline

Configuration

routes.yml

...
companion_bundle:
  resource: '@CompanionBundle/Resources/config/routes.yml'
  prefix: _debugbar

config.yml

mini_symfony:
  debug:
    debugbar:
      enabled: false
      
      # Enable/disable DataCollectors
      collectors:
        events: false
        exceptions: false
        request: true
        routing: true
        phpinfo: true
        kernel: true
        time: true
        memory: true
        queries: false

      # Configure some DataCollectors
      options:
        queries:
          with_params: true # Render SQL with the parameters substituted
          timeline: false # Add the queries to the timeline
          explain:
            enabled: false
            types:
              - SELECT # SELECT, INSERT, UPDATE, DELETE for MySQL 5.6.3+
          hints: true # Show hints for common mistakes
        routing:
          label: true

Query collector

Get performance information about your queries.

Configuration

  1. Enable the query logger for your dbal connection:
services:
  dbal_logger:
    class: Doctrine\DBAL\Logging\DebugStack  
  
  dbal_config:
    class: Doctrine\DBAL\Configuration
    calls:
      - [setSQLLogger, ['@dbal_logger']]
  
  dbal:
    class: Doctrine\DBAL\Connection
    factory: ['Doctrine\DBAL\DriverManager', getConnection]
    arguments:
      - '%database%'
      - '@dbal_config'
  1. Enable extra options for the query collector
...
options:
    queries:
      with_params: true # Render SQL with the parameters substituted
      timeline: false # Add the queries to the timeline
      explain:
        enabled: false
        types:
          - SELECT # SELECT, INSERT, UPDATE, DELETE for MySQL 5.6.3+
      hints: true # Show hints for common mistakes

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固