X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=b0b84d961181be13b2ffc9fca1c0500bb16b4e64;hb=66294129a6520edc031aa7a43fc9bdfce669af15;hp=0aeefac74b42020c0b7bdb9c2a30fab2d970fac6;hpb=e2fd5b5f162a33895ad401a8d31fca481c478a8c;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 0aeefac..b0b84d9 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -623,35 +623,6 @@ Prepare uploads. sub prepare_uploads { } -=item $c->retrieve_components - -Retrieve Components. - -=cut - -sub retrieve_components { - my $self = shift; - - my $class = ref $self || $self; - eval <<""; - package $class; - import Module::Pluggable::Fast - name => '_components', - search => [ - '$class\::Controller', '$class\::C', - '$class\::Model', '$class\::M', - '$class\::View', '$class\::V' - ], - require => 1; - - if ( my $error = $@ ) { - chomp $error; - die qq/Couldn't load components "$error"/; - } - - return $self->_components; -} - =item $c->run Starts the engine. @@ -701,7 +672,7 @@ Setup components. sub setup_components { my $self = shift; - + # Components my $class = ref $self || $self; eval <<"";