Switch everything to autoclean. Add sanity tests to ensure appropriate modern perl...
[catagits/CatalystX-DynamicComponent.git] / lib / DynamicAppDemo / Controller / FakeExample.pm
CommitLineData
b14364e6 1package DynamicAppDemo::Controller::FakeExample;
2use Moose;
046d763d 3use namespace::autoclean;
b14364e6 4
5BEGIN { extends 'DynamicAppDemo::ControllerBase' }
6
7# This is a fake controller.
8
9# It exists to show an example of using ::ControllerBase which is autogenerated,
10# which helps me seperate the building and testing of the controller action
11# registration functionality, seperate the the code generation :)
12
13sub register_me {
14 my ($self, $c) = @_;
15 $c->res->body('quux');
16 $c->res->header('X-Foo', 'bar');
17}
18
19sub _do_not_register_me { }
20
21# In a non-trivial example, you would use MX::Method::Sigs :)
22
23__PACKAGE__->meta->make_immutable;
24