-package TestApp::ActionRole::TestMatchCaptures;
+package TestApp::Action::TestMatchCaptures;
-use Moose::Role;
-use namespace::autoclean;
+use Moose;
+
+extends 'Catalyst::Action';
sub match_captures {
my ($self, $c, $cap) = @_;
use HTML::Entities;
-use base qw/Catalyst::Controller::ActionRole/;
+use base qw/Catalyst::Controller/;
sub begin :Private { }
$c->stash->{no_end} = 1;
}
-sub match_captures : Chained('/') PathPart('chained/match_captures') CaptureArgs(1) Does('~TestMatchCaptures') {
+sub match_captures : Chained('/') PathPart('chained/match_captures') CaptureArgs(1) ActionClass('+TestApp::Action::TestMatchCaptures') {
my ($self, $c) = @_;
$c->res->header( 'X-TestAppActionTestMatchCapturesHasRan', 'yes');
}