Catalyst::Model::Orochi - Catalyst-Orochi Integration
# in your MyApp::Model::Orochi package MyApp::Model::Orochi; use Moose; use namespace::autoclean; extends 'Catalyst::Model::Orochi'; __PACKAGE__->meta->make_immutable(); 1; # in your config (watch out for indentation, this is YAML) Model::Orochi: injections: # for literal values name01: value01 classes: - ClassName01 - ClassName02 namespaces: - Namespace01 - Namespace02 # in your Catalyst code: my $value = $c->model('Orochi')->get('registered/path');
This model integrates Orochi DI container with Catalyst. The same caveats from Orochi apply.
A hashref of literal values. Same as inject_literal() or Orochi::Injection::Literal
A list of class names. These classes should be using MooseX::Orochi. If the class does not use, or have an ancestor that uses MooseX::Orochi, the class will be silently ignored
A list of namespaces. Any class files found under the namespace that uses MooseX::Orochi will be included.
Daisuke Maki <daisuke@endeworks.jp>
<daisuke@endeworks.jp>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Catalyst::Model::Orochi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::Orochi
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::Orochi
For more information on module installation, please visit the detailed CPAN module installation guide.