Fix AUTHORS etc to match all other files
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Service / WithContext.pm
index 433e1aa..f3e9499 100644 (file)
@@ -1,6 +1,7 @@
 package Catalyst::Service::WithContext;
 use Moose::Role;
 
+# Why is the needed to be loaded?
 use Bread::Board::Types;
 
 with 'Bread::Board::Service';
@@ -19,7 +20,7 @@ around 'get' => sub {
     my $instance = $self->$orig(%params);
     my $ac_sub   = $self->accept_context_sub;
 
-    if ( eval { $instance->can($ac_sub) } ) {
+    if ( $instance->can($ac_sub) ) {
         return $instance->$ac_sub( @$context );
     }
 
@@ -28,3 +29,34 @@ around 'get' => sub {
 
 no Moose::Role;
 1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+Catalyst::Service::WithContext
+
+=head1 DESCRIPTION
+
+=head1 METHODS
+
+=over
+
+=item B<accept_context_sub>
+
+=item B<get>
+
+=back
+
+=head1 AUTHORS
+
+Catalyst Contributors, see Catalyst.pm
+
+=head1 COPYRIGHT
+
+This library is free software. You can redistribute it and/or modify it under
+the same terms as Perl itself.
+
+=cut