Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.65 KB

README.md

File metadata and controls

68 lines (45 loc) · 1.65 KB

NelmioEsiDebugBundle

About

The NelmioEsiDebugBundle shows you caching information around ESI requests for debugging purposes.

Features

  • Visual wrapping of ESI requests
  • A link in the Web Debug Toolbar to hide the wrapper divs

Screenshot

Configuration

If you want to disable the wrapper divs without disabling the bundle, you can do it via the configuration:

nelmio_esi_debug:
    enabled: false

Installation (Symfony 2.1+)

Require the nelmio/esi-debug-bundle package in your composer.json and update your dependencies.

$ composer require nelmio/esi-debug-bundle:*

Add the NelmioEsiDebugBundle to your application's kernel:

public function registerBundles()
{
    $bundles = array(
        ...
        new Nelmio\EsiDebugBundle\NelmioEsiDebugBundle(),
        ...
    );
    ...
}

Installation (Symfony 2.0)

Put the NelmioEsiDebugBundle into the vendor/bundles/Nelmio directory:

$ git clone git://github.com/nelmio/NelmioEsiDebugBundle.git vendor/bundles/Nelmio/EsiDebugBundle

Register the Nelmio namespace in your project's autoload script (app/autoload.php):

$loader->registerNamespaces(array(
    'Nelmio'                        => __DIR__.'/../vendor/bundles',
));

Add the NelmioEsiDebugBundle to your application's kernel:

public function registerBundles()
{
    $bundles = array(
        ...
        new Nelmio\EsiDebugBundle\NelmioEsiDebugBundle(),
        ...
    );
    ...
}

License

Released under the MIT License, see LICENSE.