jeromemacias / silex-debug
An integration of the Symfony var dumper for Silex
Installs: 3 388
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 3
Open Issues: 5
Requires
- silex/silex: 2.0.*@dev
- symfony/debug-bundle: ~2.6
This package is not auto-updated.
Last update: 2024-11-09 18:27:32 UTC
README
The Silex Debug service provider allows you to use the wonderful Symfony VarDumper component in your Silex application. It provide an integration with the Symfony web profiler toolbar and Twig.
To install this library, run the command below and you will get the latest version:
composer require jeromemacias/silex-debug ~2.0@dev
And enable it in your application:
use Silex\Provider; $app->register(new Provider\DebugServiceProvider(), array( 'debug.max_items' => 250, // this is the default 'debug.max_string_length' => -1, // this is the default ));
The provider depends on WebProfilerServiceProvider
, so you also need to enable this if that's not
already the case:
$app->register(new Provider\WebProfilerServiceProvider());
Make sure to register all other required or used service providers before DebugServiceProvider
.