CatalystX::MooseComponent - Ensure your Catalyst component isa Moose::Object
version 0.004
package MyApp::Controller::Foo; use Moose; BEGIN { extends 'Catalyst::Controller' } use CatalystX::MooseComponent; # My::CatalystComponent now isa Moose::Object
This module lets you write Catalyst components that are Moose objects without worrying about whether Catalyst::Component is Moose-based or not (Catalyst 5.7 vs. 5.8). It handles pulling in global application configuration and adding Moose::Object to your component's superclasses.
Moose::Object
Called automatically by import to set up the proper superclasses and wrap new().
import
new()
Hans Dieter Pearcey <hdp@cpan.org>
This software is copyright (c) 2009 by Hans Dieter Pearcey.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
Catalyst-Runtime 5.71001 obsoletes this module. Depend on it instead.
Based on code from Catalyst::Controller::ActionRole by Florian Ragwitz <rafl@debian.org>.
To install CatalystX::MooseComponent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::MooseComponent
CPAN shell
perl -MCPAN -e shell install CatalystX::MooseComponent
For more information on module installation, please visit the detailed CPAN module installation guide.