X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FComponent%2FACCEPT_CONTEXT.pm;h=523a4c11249683d6cb15e0714519fc9f16ba04cd;hb=16beaa34faea61ca82bde58b02237776ff61804d;hp=9afcdc10d99be32445f855e4f923f9afc1d2449f;hpb=a10b37c18e4d7b16deb9b28acc03fb896cb4ce24;p=catagits%2FCatalyst-Component-ACCEPT_CONTEXT.git diff --git a/lib/Catalyst/Component/ACCEPT_CONTEXT.pm b/lib/Catalyst/Component/ACCEPT_CONTEXT.pm index 9afcdc1..523a4c1 100644 --- a/lib/Catalyst/Component/ACCEPT_CONTEXT.pm +++ b/lib/Catalyst/Component/ACCEPT_CONTEXT.pm @@ -2,7 +2,7 @@ package Catalyst::Component::ACCEPT_CONTEXT; use warnings; use strict; -use NEXT; +use MRO::Compat; use Scalar::Util qw(weaken); =head1 NAME @@ -120,8 +120,8 @@ sub ACCEPT_CONTEXT { $self->{context} = $context; weaken($self->{context}); - - return $self->NEXT::ACCEPT_CONTEXT($context, @_) || $self; + + return $self->maybe::next::method($context, @_) || $self; } =head2 COMPONENT @@ -136,7 +136,7 @@ sub COMPONENT { my $args = shift; $args->{context} = $app; weaken($args->{context}) if ref $args->{context}; - return $class->NEXT::COMPONENT($app, $args, @_); + return $class->maybe::next::method($app, $args, @_); } =head1 AUTHOR