Catalyst::Plugin::Bread::Board::Container - A Bread::Board container for use with Catalyst
package My::App::Container; use Moose; use Bread::Board; extends 'Catalyst::Plugin::Bread::Board::Container'; sub BUILD { my $self = shift; container $self => as { container 'Model' => as { container 'DBIC' => as { service 'schema_class' => 'Test::App::Schema::DB'; service 'connect_info' => [ 'dbi:mysql:my_app_db', 'me', '****' ]; }; }; container 'View' => as { container 'TT' => as { service 'TEMPLATE_EXTENSION' => '.tt'; service 'INCLUDE_PATH' => ( block => sub { my $root = (shift)->param('app_root'); [ $root->subdir('root/templates')->stringify ] }, dependencies => [ depends_on('/app_root') ] ); }; }; }; }
This is a subclass of Bread::Board::Container that is meant to be used with Catalyst::Plugin::Bread::Board. For now this is pretty simple, but soon it will have more features.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Stevan Little <stevan.little@iinteractive.com>
Copyright 2010 Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::Bread::Board, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Bread::Board
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Bread::Board
For more information on module installation, please visit the detailed CPAN module installation guide.