1 package DynamicAppDemo::Controller::FakeExample;
3 use namespace::autoclean;
5 BEGIN { extends 'Catalyst::Controller' }
6 with 'CatalystX::ModelToControllerReflector::ControllerRole';
8 # This is a fake controller.
10 # It exists to show an example of using ::ControllerBase which is autogenerated,
11 # which helps me seperate the building and testing of the controller action
12 # registration functionality, seperate the the code generation :)
16 $c->res->body('quux');
17 $c->res->header('X-Foo', 'bar');
20 sub _do_not_register_me { }
22 # In a non-trivial example, you would use MX::Method::Sigs :)
24 __PACKAGE__->meta->make_immutable;