Orochi::Declare - Declarative Style Orochi DI
use Orochi::Declare; my $c = container { inject_constructor '/myapp' => ( class => 'MyApp', args => { foo => bind_value '/myapp/foo', } ); inject_constructor '/myapp/foo' => ( class => 'MyApp::Foo', args => { bar => bind_value '/myapp/foo/bar' } ); inject_literal '/myapp/foo/bar' => 1; } my $myapp = $c->get('/myapp');
To install Orochi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Orochi
CPAN shell
perl -MCPAN -e shell install Orochi
For more information on module installation, please visit the detailed CPAN module installation guide.