Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $app->register(new SilexProviderSecurityServiceProvider(), array(
- 'security.firewalls' => array(
- 'secured_area' => array(
- 'pattern' => '^.*$',
- 'anonymous' => true,
- 'remember_me' => array(),
- 'form' => array(
- 'login_path' => '/',
- 'check_path' => '/login_check',
- 'default_target_path' => '/en/dashboard',
- 'always_use_default_target_path'=>true
- ),
- 'logout' => array(
- 'logout_path' => '/user/logout',
- 'invalidate_session' => false
- ),
- 'users' => $app->share(function($app) { return $app['user.manager']; }),
- ),
- ),
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement