No description or website provided.
Clone or download
fabpot bug #120 Add twig-bundle support (skalpa)
This PR was merged into the 2.0.x-dev branch.


Add twig-bundle support

Adds `symfony/twig-bundle` to the list of dependencies and registers the `@twig` templates namespace.

- This fixes #109 and closes #110
- It also _fixes_ the exception page (eg: on `3.3` we get the fancy new page πŸ˜„ )


3fb1f23 Added twig-bundle support
Latest commit 57488d3 Apr 4, 2018
Failed to load latest commit information.
Tests removed obsolete condition Apr 8, 2017
.editorconfig Add functional tests May 14, 2015
.gitignore Add functional tests May 14, 2015
LICENSE updated LICENSE year Jan 2, 2017
README.rst Fix link to the Symfony blog Feb 9, 2018
WebProfilerServiceProvider.php bug #120 Add twig-bundle support (skalpa) Apr 4, 2018
composer.json Added twig-bundle support May 25, 2017


Silex Web Profiler

WARNING: Silex is in maintenance mode only. Ends of life is set to June 2018. Read more on Symfony's blog.

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


If you are using the 1.x Silex version, read the specific documentation.

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

composer require 'silex/web-profiler:^2.0'

And enable it in your application:

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 HttpFragmentServiceProvider so you also need to enable those if that's not already the case:

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

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 Composer dependency to get the logs in the profiler.

If you are using VarDumperServiceProvider, add symfony/debug-bundle as a Composer dependency to display VarDumper dumps in the toolbar and the profiler.

If you are using symfony/security, add symfony/security-bundle as a Composer dependency to display Security related information in the toolbar and the profiler.