package Catalyst::IOC::Service::WithParameters;
use Moose::Role;
-with 'Bread::Board::Service',
- 'Bread::Board::Service::WithParameters';
+with 'Bread::Board::Service::WithParameters' => { excludes => '_build_parameters' };
+
+# FIXME - shouldn't this be merged with WithAcceptContext?
sub _build_parameters {
- return {
+ {
+ ctx => {
+ required => 1,
+ },
accept_context_args => {
- isa => 'ArrayRef|Undef',
- required => 0,
- default => undef,
+ isa => 'ArrayRef',
+ default => [],
}
};
}