X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FIOC.pm;h=4b25e1b6b5af960c0e4f303400d7ecd32644e441;hb=6329bfe593d5ea3891011333f7d7984b4e5e7910;hp=3b12aa2fb724f372b71526e99b5056abd9b1b441;hpb=a07a543ab6a09501459a36476a8280995b5356eb;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/IOC.pm b/lib/Catalyst/IOC.pm index 3b12aa2..4b25e1b 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 ; @@ -161,7 +161,7 @@ Sets up the controller container to be customised. =head2 component -Adds a component to the subcontainer. Works like L. +Adds a component to the sub-container. Works like L. =head1 AUTHORS