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 | }, |
f5cb8a51 |
20 | 'CatalystX::DynamicComponent::ModelsFromConfig' => { |
21 | include => 'One|Two|Four', |
22 | exclude => 'Four', |
23 | }, |
104abdae |
24 | 'Model::One' => { |
25 | class => 'SomeModelClass', |
26 | }, |
f5cb8a51 |
27 | 'Model::Two' => { |
28 | class => 'SomeModelClass', |
29 | }, |
30 | 'Model::Three' => { |
31 | class => 'SomeModelClass', |
32 | }, |
33 | 'Model::Four' => { |
34 | class => 'SomeModelClass', |
35 | }, |
104abdae |
36 | ); |
8798165a |
37 | |
8798165a |
38 | __PACKAGE__->setup(); |
39 | |
fa2fa199 |
40 | __PACKAGE__->meta->make_immutable; |
8798165a |
41 | |