Merge branch 'master' into gsoc_breadboard
[catagits/Catalyst-Runtime.git] / lib / Catalyst / IOC / Service / WithParameters.pm
1 package Catalyst::IOC::Service::WithParameters;
2 use Moose::Role;
3
4 with 'Bread::Board::Service::WithParameters' => { excludes => '_build_parameters' };
5
6 # FIXME - shouldn't this be merged with WithAcceptContext?
7
8 sub _build_parameters {
9     {
10         ctx => {
11             required => 1,
12         },
13         accept_context_args => {
14             isa      => 'ArrayRef',
15             default  => [],
16         }
17     };
18 }
19
20 no Moose::Role;
21 1;
22
23 __END__
24
25 =pod
26
27 =head1 NAME
28
29 Catalyst::IOC::Service::WithParameters
30
31 =head1 DESCRIPTION
32
33 =head1 METHODS
34
35 =head1 AUTHORS
36
37 Catalyst Contributors, see Catalyst.pm
38
39 =head1 COPYRIGHT
40
41 This library is free software. You can redistribute it and/or modify it under
42 the same terms as Perl itself.
43
44 =cut