not moose
[catagits/Catalyst-Runtime.git] / lib / Catalyst / IOC / Service / WithParameters.pm
index 1931c11..2609996 100644 (file)
@@ -3,6 +3,8 @@ use Moose::Role;
 
 with 'Bread::Board::Service::WithParameters' => { excludes => '_build_parameters' };
 
+# FIXME - shouldn't this be merged with WithAcceptContext?
+
 sub _build_parameters {
     {
         ctx => {
@@ -10,7 +12,7 @@ sub _build_parameters {
         },
         accept_context_args => {
             isa      => 'ArrayRef',
-            required => 1,
+            default  => [],
         }
     };
 }