From: André Walker Date: Sun, 21 Aug 2011 12:59:06 +0000 (-0300) Subject: TODO item done, whitespace fix X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=6f009cc62849c974d53b1094284bb1089082be07 TODO item done, whitespace fix --- diff --git a/TODO b/TODO index 94d2bad..2683e0c 100644 --- a/TODO +++ b/TODO @@ -153,8 +153,6 @@ http://github.com/willert/catalyst-plugin-log4perl-simple/tree - make ACCEPT_CONTEXT and COMPONENT optional in Catalyst::IOC::BlockInjection and Catalyst::IOC::ConstructorInjection - Create COMPONENTSingleton life cycle - - Creating service()-like sugar for component - - Test cases for extending the container in an application. - Using the sugar added in the previous item - Test when Model::Foo depends_on Model::Bar diff --git a/lib/Catalyst/IOC.pm b/lib/Catalyst/IOC.pm index 3b12aa2..af94993 100644 --- a/lib/Catalyst/IOC.pm +++ b/lib/Catalyst/IOC.pm @@ -64,7 +64,7 @@ sub component ($;%) { $args{dependencies}{application_name} = depends_on( '/application_name' ); my $lifecycle = $args{lifecycle} || 'Singleton'; - $args{lifecycle} = grep( m/^$lifecycle$/, qw/COMPONENTSingleton Request/) + $args{lifecycle} = grep( m/^$lifecycle$/, qw/COMPONENTSingleton Request/ ) ? "+Catalyst::IOC::LifeCycle::$lifecycle" : $lifecycle ;