From: André Walker Date: Wed, 10 Aug 2011 04:35:24 +0000 (-0300) Subject: not inheriting from Bread::Board anymore (though it's still probably wrong) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e3dbfeacccdeee916d640cd15a037a17dda2194;p=catagits%2FCatalyst-Runtime.git not inheriting from Bread::Board anymore (though it's still probably wrong) --- diff --git a/lib/Catalyst/IOC.pm b/lib/Catalyst/IOC.pm index f63e3da..fdbea05 100644 --- a/lib/Catalyst/IOC.pm +++ b/lib/Catalyst/IOC.pm @@ -1,10 +1,41 @@ package Catalyst::IOC; use strict; use warnings; -use base 'Bread::Board'; +use Bread::Board; -# You want to use Sub::Exporter here to export our sugar (and probably some of -# the bread::board sugar +# FIXME - neither of these work: +#use Sub::Exporter -setup => [ +# qw( +# as +# container +# depends_on +# service +# alias +# wire_names +# include +# typemap +# infer +# ) +#]; +#use Sub::Exporter -setup => [ +# qw( +# Bread::Board::as +# Bread::Board::container +# Bread::Board::depends_on +# Bread::Board::service +# Bread::Board::alias +# Bread::Board::wire_names +# Bread::Board::include +# Bread::Board::typemap +# Bread::Board::infer +# ) +#]; +# I'm probably doing it wrong. +# Anyway, I'll just use Moose::Exporter. Do I really have to use Sub::Exporter? +use Moose::Exporter; +Moose::Exporter->setup_import_methods( + also => ['Bread::Board'], +); 1;