Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Latest commit

 

History

History
59 lines (43 loc) · 1.25 KB

README.md

File metadata and controls

59 lines (43 loc) · 1.25 KB

Elao Profiler Dashboard Bundle

What is it?

This bundle compile metrics (request info, performance metrics, db queries, etc.) of last requests (from the Symfony Profiler) into one view.

example

Installation

Symfony >= 2.7

Add repository to composer

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

Require the bundle in Composer:

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

Install the bundle in your 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();
    }
}

Import the rounting in your routing_dev.yml configuration file:

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

Go on http://app.domain.dev/app_dev.php/_profiler_dashboard/metrics