pomm-project/pomm-profiler-service-provider

Pomm Profiler Service Provider for the Silex 1.x microframework.

dev-master / 2.0.x-dev 2015-08-22 16:42 UTC

README

Pomm profiler in Silex 1.x

Install

Add the following requirements in the project's composer.json file:

    "silex/web-profiler": "~1.0",
    "pomm-project/pomm-profiler-service-provider": "dev-silex-1"

Setup

<?php // bootstrap.php

    $app->register(new Silex\Provider\ServiceControllerServiceProvider());
    $app->register(new Provider\WebProfilerServiceProvider(), array(
        'profiler.cache_dir' => PROJECT_DIR.'/cache/profiler',
        'profiler.mount_prefix' => '/_profiler', // this is the default
    ));
    $app->register(new PommProject\Silex\ProfilerServiceProvider\PommProfilerServiceProvider());