Version 0.07
[catagits/Catalyst-Plugin-RequireSSL.git] / README
diff --git a/README b/README
index 7f28ce9..ec16a7a 100644 (file)
--- a/README
+++ b/README
@@ -3,16 +3,20 @@ NAME
 
 SYNOPSIS
         # in MyApp.pm
-        use Catalyst;
-        MyApp->setup( qw/RequireSSL/ );
-    
-        MyApp->config->{require_ssl} = {
-            https => 'secure.mydomain.com',
-            http => 'www.mydomain.com',
-            remain_in_ssl => 0,
-            no_cache => 0,
-            detach_on_redirect => 1,
-        };
+        use Catalyst qw/
+            RequireSSL
+        /;
+        __PACKAGE__->config(
+            require_ssl => {
+                https => 'secure.mydomain.com',
+                http => 'www.mydomain.com',
+                remain_in_ssl => 0,
+                no_cache => 0,
+                detach_on_redirect => 1,
+            },
+        );
+        __PACKAGE__->setup;
+
 
         # in any controller methods that should be secured
         $c->require_ssl;