| 1 | package Catalyst::Component::ContextClosure; | ||
| 2 | |||
| 3 | 79 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 79 | ▶ | use Scalar::Util 'weaken'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 79 | ▶ | use namespace::clean -except => [ 'meta' ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | sub make_context_closure { |
|
Subroutine
make_context_closure: called CC=1 SCAR=0.2
Pod
documented
| |||
| 8 | 1 | my ($self, $closure, $ctx) = @_; | |
| 9 | 1 | weaken $ctx; | |
| 10 | 0 | ▶ | return sub { $closure->($ctx, @_) }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 11 | } | ||
| 12 | |||
| 13 | 79 | 1; | |
| 14 | |||
| 15 | __END__ | ||