Commit | Line | Data |
8798165a |
1 | package DynamicAppDemo; |
fa2fa199 |
2 | use Moose; |
3 | use Catalyst::Runtime '5.80002'; |
8798165a |
4 | |
fa2fa199 |
5 | use Catalyst qw/ |
0506e950 |
6 | +CatalystX::DynamicComponent::ModelsFromConfig |
192db6f8 |
7 | +CatalystX::DynamicComponent::ModelToControllerReflector |
fa2fa199 |
8 | /; |
8798165a |
9 | |
fa2fa199 |
10 | extends 'Catalyst'; |
8798165a |
11 | |
8798165a |
12 | our $VERSION = '0.01'; |
13 | |
00b934f1 |
14 | __PACKAGE__->config( |
104abdae |
15 | name => 'DynamicAppDemo', |
00b934f1 |
16 | 'Controller::One' => { |
0b07685c |
17 | superclasses => [qw/DynamicAppDemo::ControllerBase/], |
18 | roles => [qw/DynamicAppDemo::ControllerRole/], |
00b934f1 |
19 | }, |
3765b9ee |
20 | 'CatalystX::DynamicComponent::ModelToControllerReflector' => { |
21 | interface_roles => 'SomeModelClassInterface', |
22 | }, |
f5cb8a51 |
23 | 'CatalystX::DynamicComponent::ModelsFromConfig' => { |
24 | include => 'One|Two|Four', |
25 | exclude => 'Four', |
26 | }, |
104abdae |
27 | 'Model::One' => { |
28 | class => 'SomeModelClass', |
29 | }, |
f5cb8a51 |
30 | 'Model::Two' => { |
31 | class => 'SomeModelClass', |
32 | }, |
33 | 'Model::Three' => { |
34 | class => 'SomeModelClass', |
35 | }, |
36 | 'Model::Four' => { |
37 | class => 'SomeModelClass', |
38 | }, |
104abdae |
39 | ); |
8798165a |
40 | |
8798165a |
41 | __PACKAGE__->setup(); |
42 | |
fa2fa199 |
43 | __PACKAGE__->meta->make_immutable; |
8798165a |
44 | |