I've integrated silex/web-profiler
in a Silex app:
"require-dev": {
"silex/web-profiler": "^2.0"
}
and configured an example firewall with form authentication:
// Security
$app['security.firewalls'] = array(
'main' => array(
'pattern' => '^/',
'anonymous' => true,
'form' => array('login_path' => '/login', 'check_path' => '/login_check'),
'users' => array(
'admin' => array('ROLE_ADMIN', '$2y$10$3i9/lVd8UOFIJ6PAMFt8gu3/r5g0qeCJvoSlLCsvMTythye19F77a'),
),
)
);
$app->register(new Silex\Provider\SecurityServiceProvider(), array());
// Profiler
if ($app['debug']) {
$app->register(new Silex\Provider\ServiceControllerServiceProvider());
$app->register(new Provider\WebProfilerServiceProvider(), array(
'profiler.cache_dir' => __DIR__.'/../cache/profiler',
'profiler.mount_prefix' => '/_profiler', // this is the default
));
}
$app->boot();
I'm able to login with the example admin
account and access the user in a controller, but the WebProfiler doesn't show the user tab:
Should it be additionally configured?