Skip to content

Kezino/Silex-WebProfiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 enable it, add this dependency to your composer.json file:

"silex/web-profiler": "~1.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 UrlGeneratorServiceProvider, so you also need to enable those if that's not already the case:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published