X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController.pm;h=5c2267a85cf931e3f1603732a31844a5abbefb95;hp=ec536ae893682f760602fd029ed0149afaf49a0d;hb=9cc543bce15960f805772ee5cda084c5885f76f2;hpb=11ae73780599395627cb18dc95849ddcb0fce2ae diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index ec536ae..5c2267a 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -9,6 +9,8 @@ use Scalar::Util qw/blessed/; use Catalyst::Exception; use Catalyst::Utils; +with 'Catalyst::Component::Role::CaptureApp'; + has path_prefix => ( is => 'rw', @@ -32,20 +34,6 @@ has actions => init_arg => undef, ); -# Future - isa => 'ClassName|Catalyst' performance? -# required => 1 breaks tests.. -has _application => (is => 'ro'); -sub _app { shift->_application(@_) } - -override 'BUILDARGS' => sub { - my ($self, $app) = @_; - - my $args = super(); - $args->{_application} = $app; - - return $args; -}; - sub BUILD { my ($self, $args) = @_; my $action = delete $args->{action} || {};