X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=examples%2FMyApp-Web%2Flib%2FMyApp%2FWeb%2FController%2FRoot.pm;h=8d27d80184bb3dfd23251543c14432e46b25bbf5;hb=f00bea98e5a87cf38a8f3e3048cdf8cde766510e;hp=3f2e3d655c21852a8b6f62f681b524b178029af3;hpb=dae0432951a732f9ed379033194a65861d3cb3e2;p=catagits%2FCatalystX-Declare.git diff --git a/examples/MyApp-Web/lib/MyApp/Web/Controller/Root.pm b/examples/MyApp-Web/lib/MyApp/Web/Controller/Root.pm index 3f2e3d6..8d27d80 100644 --- a/examples/MyApp-Web/lib/MyApp/Web/Controller/Root.pm +++ b/examples/MyApp-Web/lib/MyApp/Web/Controller/Root.pm @@ -1,9 +1,11 @@ use CatalystX::Declare; +namespace MyApp::Web; + # we consume a role that does what the RenderView action class # would normally do -controller MyApp::Web::Controller::Root - with MyApp::Web::ControllerRole::RenderView { +controller ::Controller::Root + with ::ControllerRole::RenderView { # $CLASS is provided by CLASS.pm $CLASS->config(namespace => '');