package Catalyst::Authentication::Store::Null;
+use Moose;
+use namespace::autoclean;
-use strict;
-use warnings;
+with 'MooseX::Emulate::Class::Accessor::Fast';
use Catalyst::Authentication::User::Hash;
-use base qw( Class::Accessor::Fast );
-
-BEGIN {
- __PACKAGE__->mk_accessors( qw( __config ) );
-}
+__PACKAGE__->mk_accessors( qw( _config ) );
sub new {
my ( $class, $config, $app, $realm ) = @_;
- bless { __config => $config }, $class;
+ bless { _config => $config }, $class;
}
sub for_session {
- my ( $self, $c, $user ) = @_;
+ my ( $self, $c, $user ) = @_;
return $user;
}
sub from_session {
- my ( $self, $c, $user ) = @_;
+ my ( $self, $c, $user ) = @_;
return $user;
}
Authentication
);
- __PACKAGE__->config->{'Plugin::Authentication'} = {
+ __PACKAGE__->config( 'Plugin::Authentication' => {
default_realm => 'remote',
realms => {
remote => {
class => 'Null',
}
}
- }
- };
+ }
+ });
=head1 DESCRIPTION