PLIKI:
firewalls: # disables authentication for assets and the profiler, adapt it according to your needs dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: pattern: ^/ form_login: login_path: fos_user_security_login default_target_path: /%locale%/panel/show provider: fos_userbundle check_path: fos_user_security_check csrf_token_generator: security.csrf.token_manager # if you are using Symfony < 2.8, use the following config instead: # csrf_provider: form.csrf_provider logout: path: fos_user_security_logout target: /%locale% anonymous: true logout: true
Routing:
app: resource: "@AppBundle/Controller/" type: annotation requirements: _locale: en|pl fos_user: resource: "@FOSUserBundle/Resources/config/routing/all.xml" prefix: /{_locale}/ requirements: _locale: en|pl