projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b1afa6e
)
undef for accept_context_args is better than []
André Walker [Fri, 29 Jul 2011 04:07:43 +0000 (
01:07
-0300)]
lib/Catalyst/IOC/Container.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/IOC/Container.pm
b/lib/Catalyst/IOC/Container.pm
index
4409816
..
ebffb92
100644
(file)
--- a/
lib/Catalyst/IOC/Container.pm
+++ b/
lib/Catalyst/IOC/Container.pm
@@
-629,8
+629,9
@@
sub add_component {
default => Catalyst::Utils::class2classsuffix( $component ),
},
accept_context_args => {
- isa => 'ArrayRef',
- default => sub { [] },
+ isa => 'ArrayRef|Undef',
+ required => 0,
+ default => undef,
},
},
)