Fix tests, add autobox to flatten interface roles so you can use a string or array...
[catagits/CatalystX-DynamicComponent.git] / t / lib / DynamicAppDemo.pm
CommitLineData
8798165a 1package DynamicAppDemo;
fa2fa199 2use Moose;
3use Catalyst::Runtime '5.80002';
8798165a 4
fa2fa199 5use Catalyst qw/
0506e950 6 +CatalystX::DynamicComponent::ModelsFromConfig
192db6f8 7 +CatalystX::DynamicComponent::ModelToControllerReflector
fa2fa199 8/;
8798165a 9
fa2fa199 10extends 'Catalyst';
8798165a 11
8798165a 12our $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