Elao WebProfilerExtraBundle

在 web 剖析器中添加路由、容器、assetic 和 twig 信息。「Adding routing, container, assetic & twig information in the web profiler」

  • 所有者: Elao/WebProfilerExtraBundle
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Elao WebProfilerExtraBundle

Total Downloads

What is this Symfony2 bundle for ?

It adds in your WebProfiler extra sections :

  • Routing : Lists all the routes connected to your application
  • Container : Lists all the services available in your container
  • Twig : Lists Twig extensions, tests, filters and functions available for your application
  • Assetic

WebProfilerExtraBundle

Installation

If you are working with Symfony >= 2.2

Add this in your composer.json

"require-dev": {
    [...]
    "elao/web-profiler-extra-bundle" : "~2.3@dev"
},

And run php composer.phar update elao/web-profiler-extra-bundle

If you are working with Symfony <= 2.1, prefer the 2.1 branch of this bundle "elao/web-profiler-extra-bundle" : "dev-2.1"

Register the bundle in your AppKernel (app/AppKernel.php)

Most of the time, we need this bundle to be only activated in the dev environment

[...]
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    [...]
    $bundles[] = new Elao\WebProfilerExtraBundle\WebProfilerExtraBundle();
}

Activate the different collectors in app/config/config_dev.yml

web_profiler_extra:
    routing:
        enabled:        true
        display_in_wdt: true
    container:
        enabled:        true
        display_in_wdt: true
    assetic:
        enabled:        true
        display_in_wdt: true
    twig:
        enabled:        true
        display_in_wdt: true

If you don't use assetic then you need to disable the assetic collector

web_profiler_extra:
    assetic:
        enabled:        false
        display_in_wdt: false

Install assets

Install assets by running to have beautiful icons in your debug bar

$ app/console assets:install web/ --symlink

Screenshot

Screenshot

主要指標

概覽
名稱與所有者Elao/WebProfilerExtraBundle
主編程語言HTML
編程語言PHP (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2011-02-23 07:47:36
推送於2019-12-26 18:52:31
最后一次提交2019-02-04 08:19:17
發布數11
最新版本名稱v2.3.6 (發布於 )
第一版名稱v2.2.0 (發布於 )
用户参与
星數262
關注者數32
派生數46
提交數157
已啟用問題?
問題數31
打開的問題數1
拉請求數44
打開的拉請求數0
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?