Silex Web Profiler
==================

The Silex Web Profiler service provider allows you to use the wonderful Symfony
web debug toolbar and the Symfony profiler in your Silex application.

To install this library, run the command below and you will get the latest
version:

.. code-block:: bash

    composer require silex/web-profiler ~2.0@dev

And enable it in your application:

.. code-block:: php

    use Silex\Provider;

    $app->register(new Provider\WebProfilerServiceProvider(), array(
        'profiler.cache_dir' => __DIR__.'/../cache/profiler',
        'profiler.mount_prefix' => '/_profiler', // this is the default
    ));

The provider depends on ``ServiceControllerServiceProvider``,
``TwigServiceProvider`` and ``RoutingServiceProvider``, so you also need
to enable those if that's not already the case:

.. code-block:: php

    $app->register(new Provider\ServiceControllerServiceProvider());
    $app->register(new Provider\TwigServiceProvider());
    $app->register(new Provider\RoutingServiceProvider());

If you are using ``FormServiceProvider``, the ``WebProfilerServiceProvider`` will detect that and
enable the corresponding panels.

*Make sure to register all other required or used service providers before* ``WebProfilerServiceProvider``.

If you are using ``MonologServiceProvider`` for logs, you must also add
``symfony/monolog-bridge`` as a dependency in your ``composer.json`` to get the
logs in the profiler.

Silex Web Profiler
==================

The Silex Web Profiler service provider allows you to use the wonderful Symfony
web debug toolbar and the Symfony profiler in your Silex application.

To install this library, run the command below and you will get the latest
version:

.. code-block:: bash

    composer require silex/web-profiler ~2.0@dev

And enable it in your application:

.. code-block:: php

    use Silex\Provider;

    $app->register(new Provider\WebProfilerServiceProvider(), array(
        'profiler.cache_dir' => __DIR__.'/../cache/profiler',
        'profiler.mount_prefix' => '/_profiler', // this is the default
    ));

The provider depends on ``ServiceControllerServiceProvider``,
``TwigServiceProvider``, ``HttpFragmentServiceProvider`` and ``RoutingServiceProvider``, so you also need
to enable those if that's not already the case:

.. code-block:: php

    $app->register(new Provider\HttpFragmentServiceProvider());
    $app->register(new Provider\ServiceControllerServiceProvider());
    $app->register(new Provider\TwigServiceProvider());
    $app->register(new Provider\RoutingServiceProvider());

If you are using ``FormServiceProvider``, the ``WebProfilerServiceProvider`` will detect that and
enable the corresponding panels.

*Make sure to register all other required or used service providers before* ``WebProfilerServiceProvider``.

If you are using ``MonologServiceProvider`` for logs, you must also add
``symfony/monolog-bridge`` as a dependency in your ``composer.json`` to get the
logs in the profiler.

Add missing dependency for HttpFragmentServiceProvider
Add missing dependency for HttpFragmentServiceProvider

WebProfilerBundle templates make use of `render` functions. This means it requires the `HttpFragmentServiceProvider` to be enabled. This updates the readme accordingly.