Chop up - move backcompat code into the ::Plugin:: namespace, as those are what are...
[catagits/Catalyst-Plugin-Authentication.git] / lib / Catalyst / Authentication / Store / Minimal.pm
index ba54f6a..150a3e4 100644 (file)
@@ -39,8 +39,6 @@ sub find_user {
 
     my $user = $self->userhash->{$id};
 
-    #print STDERR "FOO1! " . ref($user) . " - ". Scalar::Util::blessed($user) . "\n";
-
     if ( ref($user) eq "HASH") {
         $user->{id} ||= $id;
         return bless $user, "Catalyst::Authentication::User::Hash";
@@ -73,19 +71,6 @@ sub get_user {
     $self->find_user({id => $id});
 }
 
-## backwards compatibility
-sub setup {
-    my $c = shift;
-
-    $c->default_auth_store(
-        __PACKAGE__->new( 
-            $c->config->{authentication}, $c
-        )
-    );
-
-       $c->NEXT::setup(@_);
-}
-
 __PACKAGE__;
 
 __END__
@@ -107,7 +92,7 @@ Catalyst::Authentication::Store::Minimal - Minimal authentication store
         Authentication
     /;
 
-    __PACKAGE__->config->{authentication} = 
+    __PACKAGE__->config->{'Plugin::Authentication'} = 
                     {  
                         default_realm => 'members',
                         realms => {
@@ -203,6 +188,8 @@ Chooses a random user from the hash and delegates to it.
 
 =head2 get_user( )
 
+Deprecated
+
 =head2 setup( )
 
 =cut