pomm-project/pomm-profiler-service-provider

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

dev-silex-1 2016-11-11 15:21 UTC

This package is auto-updated.

Last update: 2024-10-07 18:46:22 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());