small adjustments
André Walker [Thu, 11 Aug 2011 15:26:44 +0000 (12:26 -0300)]
lib/Catalyst/IOC.pm
t/lib/TestAppCustomContainer/Controller/Root.pm

index 0c6ad6e..7a48b82 100644 (file)
@@ -1,7 +1,7 @@
 package Catalyst::IOC;
 use strict;
 use warnings;
-use Bread::Board;
+use Bread::Board qw/depends_on/;
 use Catalyst::IOC::ConstructorInjection;
 
 # FIXME - All of these imports need to get the importing package
@@ -10,11 +10,13 @@ use Catalyst::IOC::ConstructorInjection;
 #         containers..
 use Sub::Exporter -setup => {
     exports => [qw/
+        depends_on
         component
         model
         container
     /],
     groups  => { default => [qw/
+        depends_on
         component
         model
         container
index 36ce7ed..a6ddb2f 100644 (file)
@@ -26,7 +26,7 @@ sub get_model_baz :Local {
 
 sub get_model_foo :Local {
     my ($self, $c) = @_;
-    $c->res->body(ref $c->model('Foo'));
+    $c->res->body(ref $c->model('DefaultSetup'));
 }
 
 __PACKAGE__->meta->make_immutable;