X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FComponent%2FContextClosure.pm;h=9c3139ac5b8c9372003e48ee3ebcf5810ee366db;hp=23e1381dce98c337f0b76c7ecd4866f1fd248bda;hb=8ad6fd584ff18d88abf31629d4593ba94eeb7647;hpb=8a64678f4bc1053b861b33a498a7445ccbf81b3e diff --git a/lib/Catalyst/Component/ContextClosure.pm b/lib/Catalyst/Component/ContextClosure.pm index 23e1381..9c3139a 100644 --- a/lib/Catalyst/Component/ContextClosure.pm +++ b/lib/Catalyst/Component/ContextClosure.pm @@ -22,7 +22,7 @@ Catalyst::Component::ContextClosure - Moose Role for components which need to cl package MyApp::Controller::Foo; use Moose; - use namespace::autoclean; + use namespace::clean -except => 'meta'; BEGIN { extends 'Catalyst::Controller'; with 'Catalyst::Component::ContextClosure'; @@ -33,7 +33,7 @@ Catalyst::Component::ContextClosure - Moose Role for components which need to cl $ctx->stash(a_closure => $self->make_context_closure(sub { my ($ctx) = @_; $ctx->response->body('body set from closure'); - }, $ctx); + }, $ctx)); } =head1 DESCRIPTION @@ -63,10 +63,14 @@ L L +=begin stopwords + =head1 AUTHOR Florian Ragwitz Erafl@debian.orgE +=end stopwords + =head1 COPYRIGHT This library is free software. You can redistribute it and/or modify it under