Commit | Line | Data |
88cea23c |
1 | package TestAppCustomContainer::Model::Foo; |
3ef84846 |
2 | use Moose; |
3 | extends 'Catalyst::Model'; |
b463fcad |
4 | with 'TestAppCustomContainer::Role::ACCEPT_CONTEXT'; |
5 | |
6 | has bar_got_it => ( |
7 | traits => ['Counter'], |
8 | is => 'ro', |
9 | isa => 'Int', |
10 | default => 0, |
11 | handles => { |
12 | inc_bar_got_it => 'inc', |
13 | }, |
14 | ); |
15 | |
16 | has baz_got_it => ( |
17 | traits => ['Counter'], |
18 | is => 'ro', |
19 | isa => 'Int', |
20 | default => 0, |
21 | handles => { |
22 | inc_baz_got_it => 'inc', |
23 | }, |
24 | ); |
25 | |
26 | sub COMPONENT { shift->new() } |
3ef84846 |
27 | |
28 | __PACKAGE__->meta->make_immutable; |
29 | |
30 | no Moose; |
31 | 1; |