File tree 3 files changed +17
-16
lines changed 3 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ configuration file (``config.yml``):
55
55
56
56
propel :
57
57
dbal :
58
- driver : " %database_driver%"
59
- user : " %database_user%"
60
- password : " %database_password%"
61
- dsn : " %database_driver%:host=%database_host%;dbname=%database_name%;charset=%database_charset%"
58
+ driver : " %database_driver%"
59
+ user : " %database_user%"
60
+ password : " %database_password%"
61
+ dsn : " %database_driver%:host=%database_host%;dbname=%database_name%;charset=%database_charset%"
62
62
63
63
Now that Propel knows about your database, Symfony2 can create the database for
64
64
you:
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ authentication (i.e. the old-school username/password box):
45
45
security :
46
46
firewalls :
47
47
secured_area :
48
- pattern : ^/
48
+ pattern : ^/
49
49
anonymous : ~
50
50
http_basic :
51
51
realm : " Secured Demo Area"
@@ -300,11 +300,11 @@ First, enable form login under your firewall:
300
300
security :
301
301
firewalls :
302
302
secured_area :
303
- pattern : ^/
303
+ pattern : ^/
304
304
anonymous : ~
305
305
form_login :
306
- login_path : login
307
- check_path : login_check
306
+ login_path : login
307
+ check_path : login_check
308
308
309
309
.. code-block :: xml
310
310
@@ -373,10 +373,10 @@ submission (i.e. ``/login_check``):
373
373
374
374
# app/config/routing.yml
375
375
login :
376
- path : /login
377
- defaults : { _controller: AcmeSecurityBundle:Security:login }
376
+ path : /login
377
+ defaults : { _controller: AcmeSecurityBundle:Security:login }
378
378
login_check :
379
- path : /login_check
379
+ path : /login_check
380
380
381
381
.. code-block :: xml
382
382
@@ -637,8 +637,8 @@ see :doc:`/cookbook/security/form_login`.
637
637
638
638
firewalls :
639
639
login_firewall :
640
- pattern : ^/login$
641
- anonymous : ~
640
+ pattern : ^/login$
641
+ anonymous : ~
642
642
secured_area :
643
643
pattern : ^/
644
644
form_login : ~
@@ -1094,13 +1094,14 @@ aren't stored anywhere in a database. The actual user object is provided
1094
1094
by Symfony (:class: `Symfony\\ Component\\ Security\\ Core\\ User\\ User `).
1095
1095
1096
1096
.. tip ::
1097
+
1097
1098
Any user provider can load users directly from configuration by specifying
1098
1099
the ``users `` configuration parameter and listing the users beneath it.
1099
1100
1100
1101
.. caution ::
1101
1102
1102
1103
If your username is completely numeric (e.g. ``77 ``) or contains a dash
1103
- (e.g. ``user-name ``), you should use that alternative syntax when specifying
1104
+ (e.g. ``user-name ``), you should use an alternative syntax when specifying
1104
1105
users in YAML:
1105
1106
1106
1107
.. code-block :: yaml
Original file line number Diff line number Diff line change @@ -452,8 +452,8 @@ by the routing system using the special ``_locale`` parameter:
452
452
.. code-block :: yaml
453
453
454
454
contact :
455
- path : /{_locale}/contact
456
- defaults : { _controller: AcmeDemoBundle:Contact:index, _locale: en }
455
+ path : /{_locale}/contact
456
+ defaults : { _controller: AcmeDemoBundle:Contact:index, _locale: en }
457
457
requirements :
458
458
_locale : en|fr|de
459
459
You can’t perform that action at this time.
0 commit comments