elao/profiler-dashboard-bundle

此包已被弃用且不再维护。没有建议的替代包。

此包将最后请求的指标编译到一个视图。

安装: 285

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 5

分支: 1

开放问题: 0

语言:HTML

类型:symfony-bundle

1.0.0 2016-09-02 14:31 UTC

This package is not auto-updated.

Last update: 2020-01-24 17:02:34 UTC


README

这是什么?

此包将(请求信息、性能指标、数据库查询等)最后请求的指标编译到一个视图。

example

安装

Symfony >= 2.7

将仓库添加到 Composer

"repositories": [
    {
        "url": "https://github.com/Elao/elao-profiler-dashboard-bundle.git",
        "type": "git"
    }
],

Composer 中需要此包

$ composer require elao/profiler-dashboard-bundle dev-master@dev

在您的 AppKernel 中安装此包

<?php
// app/AppKernel.php

public function registerBundles()
{
    // ...

    if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
        // ...
        $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();

        // Elao Profiler Dashboard
        $bundles[] = new Elao\Bundle\ProfilerDashboardBundle\ElaoProfilerDashboardBundle();
    }
}

在您的 routing_dev.yml 配置文件中导入路由

// app/config/routing_dev.yml
_elao_profiler_dashboard:
    resource: "@ElaoProfilerDashboardBundle"
    type:     annotation
    prefix:   /_profiler_dashboard

访问 http://app.domain.dev/app_dev.php/_profiler_dashboard/metrics