silexphp / Silex

[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components
https://silex.symfony.com
MIT License
3.58k stars 718 forks source link

Web-profiler #1298

Closed sdmg15 closed 8 years ago

sdmg15 commented 8 years ago

Hi, Not understanding where the error is coming when tring to embed web-profiler. Here is the error message : `InvalidArgumentException in Pimple.php line 78: Identifier "security.authentication_providers" is not defined.``

And here is my code :

$app->register(new Silex\Provider\ServiceControllerServiceProvider());
if (isset($app['debug']) && $app['debug']) {
    $app->register(new Silex\Provider\HttpFragmentServiceProvider());
    $app->register(new Silex\Provider\WebProfilerServiceProvider(), array(
        'profiler.cache_dir' => __DIR__.'/../var/cache/profiler'
    ));
stof commented 8 years ago

issues with the WebProfiler integration should be reported to the repo containing the webprofiler integration: https://github.com/silexphp/Silex-WebProfiler

sdmg15 commented 8 years ago

Ha ok !