ditching the COMPONENT constructor
[catagits/Catalyst-Runtime.git] / t / lib / TestAppCustomContainer / Model / Baz.pm
index 2efb1f5..fa475e6 100644 (file)
@@ -4,6 +4,12 @@ extends 'Catalyst::Model';
 with 'TestAppCustomContainer::Role::HoldsFoo',
      'TestAppCustomContainer::Role::ACCEPT_CONTEXT';
 
+sub BUILD {
+    my ( $self ) = @_;
+
+    $self->foo->inc_baz_got_it;
+}
+
 __PACKAGE__->meta->make_immutable;
 
 no Moose;