X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=9b7d58ab130aa184f76a8c3a3f96de29837fa909;hb=8d4e224b2b7987ffa171d1c10c578344f49caa23;hp=33a787b460623f577a6632a07ae95ff03cdc542e;hpb=424b2705f759cef65acfaf8ea0f43e6bef75b534;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 33a787b..9b7d58a 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -613,6 +613,12 @@ sub setup_components { $self->components->{ ref $comp } = $comp; push @comps, $comp; } + my $t = Text::ASCIITable->new( { hide_HeadRow => 1, hide_HeadLine => 1 } ); + $t->setCols('Class'); + $t->setColWidth( 'Class', 75, 1 ); + $t->addRow( wrap( $_, 75 ) ) for keys %{ $self->components }; + $self->log->debug( 'Loaded components', $t->draw ) + if ( @{ $t->{tbl_rows} } && $self->debug ); $self->setup_actions( [ $self, @comps ] ); }