TODO item done, whitespace fix
André Walker [Sun, 21 Aug 2011 12:59:06 +0000 (09:59 -0300)]
TODO
lib/Catalyst/IOC.pm

diff --git a/TODO b/TODO
index 94d2bad..2683e0c 100644 (file)
--- 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
index 3b12aa2..af94993 100644 (file)
@@ -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
                      ;