1 package TestApp::Plugin::AddDispatchTypes;
9 ### Load custom DispatchTypes, as done by Catalyst::Plugin::Server
10 # There should be a waaay less ugly method for doing this,
12 $class->next::method( @_ );
13 $class->dispatcher->preload_dispatch_types(
14 @{$class->dispatcher->preload_dispatch_types},
15 qw/ +TestApp::DispatchType::CustomPreLoad /
17 $class->dispatcher->postload_dispatch_types(
18 @{$class->dispatcher->postload_dispatch_types},
19 qw/ +TestApp::DispatchType::CustomPostLoad /