Baz -> RequestLifeCycle
[catagits/Catalyst-Runtime.git] / t / lib / TestAppCustomContainer / Role / ACCEPT_CONTEXT.pm
CommitLineData
b463fcad 1package TestAppCustomContainer::Role::ACCEPT_CONTEXT;
2use Moose::Role;
3use namespace::autoclean;
4
5has accept_context_called => (
6 traits => ['Counter'],
7 isa => 'Int',
8 is => 'ro',
9 default => 0,
10 handles => {
11 inc_accept_context_called => 'inc',
12 },
13);
14
15sub ACCEPT_CONTEXT {
16 my ( $self, $ctx, @args ) = @_;
17
18 $self->inc_accept_context_called;
19
20 return $self;
21}
22
231;