Fix a load of old style config statements
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / Tutorial / 05_Authentication.pod
index 304a128..fd066b1 100644 (file)
@@ -279,13 +279,15 @@ C<lib/MyApp.pm> and place the following text above the call to
 C<__PACKAGE__-E<gt>setup();>:
 
     # Configure SimpleDB Authentication
-    __PACKAGE__->config->{'Plugin::Authentication'} = {
+    __PACKAGE__->config(
+        'Plugin::Authentication' => {
             default => {
                 class           => 'SimpleDB',
                 user_model      => 'DB::User',
                 password_type   => 'clear',
             },
-        };
+        },
+    );
 
 We could have placed this configuration in C<myapp.conf>, but placing
 it in C<lib/MyApp.pm> is probably a better place since it's not likely
@@ -737,13 +739,15 @@ Edit C<lib/MyApp.pm> and update it to match the following text (the
 only change is to the C<password_type> field):
 
     # Configure SimpleDB Authentication
-    __PACKAGE__->config->{'Plugin::Authentication'} = {
+    __PACKAGE__->config(
+        'Plugin::Authentication' => {
             default => {
                 class           => 'SimpleDB',
                 user_model      => 'DB::User',
                 password_type   => 'self_check',
             },
-        };
+        },
+    );
 
 The use of C<self_check> will cause
 Catalyst::Plugin::Authentication::Store::DBIC to call the
@@ -846,14 +850,14 @@ C<__PACKAGE__-E<gt>config> setting to something like:
             name    => 'MyApp',
             # Disable deprecated behavior needed by old applications
             disable_component_resolution_regex_fallback => 1,
-            session => { flash_to_stash => 1 },
+            'Plugin::Session' => { flash_to_stash => 1 },
         );
 
 B<or> add the following to C<myapp.conf>:
 
-    <session>
+    <Plugin::Session>
         flash_to_stash   1
-    </session>
+    </Plugin::Session>
 
 The C<__PACKAGE__-E<gt>config> option is probably preferable here
 since it's not something you will want to change at runtime without it