Commit | Line | Data |
---|---|---|
8798165a | 1 | package DynamicAppDemo; |
fa2fa199 | 2 | use Moose; |
3 | use Catalyst::Runtime '5.80002'; | |
8798165a | 4 | |
fa2fa199 | 5 | use Catalyst qw/ |
6 | -Debug | |
fa2fa199 | 7 | /; |
8798165a | 8 | |
fa2fa199 | 9 | extends 'Catalyst'; |
8798165a | 10 | |
6a2f1e96 | 11 | # Ordering important. :) |
7d26c84b | 12 | with qw/ |
13 | CatalystX::ModelsFromConfig | |
6a2f1e96 | 14 | CatalystX::ModelToControllerReflector |
7d26c84b | 15 | /; |
16 | ||
8798165a | 17 | our $VERSION = '0.01'; |
18 | ||
00b934f1 | 19 | __PACKAGE__->config( |
104abdae | 20 | name => 'DynamicAppDemo', |
00b934f1 | 21 | 'Controller::One' => { |
0b07685c | 22 | superclasses => [qw/DynamicAppDemo::ControllerBase/], |
23 | roles => [qw/DynamicAppDemo::ControllerRole/], | |
00b934f1 | 24 | }, |
104abdae | 25 | 'Model::One' => { |
26 | class => 'SomeModelClass', | |
27 | }, | |
28 | ); | |
8798165a | 29 | |
8798165a | 30 | __PACKAGE__->setup(); |
31 | ||
fa2fa199 | 32 | __PACKAGE__->meta->make_immutable; |
8798165a | 33 |