package Catalyst::Service::WithContext;
use Moose::Role;
+# Why is the needed to be loaded?
use Bread::Board::Types;
with 'Bread::Board::Service';
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 );
}
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