Skip to content

Commit 3e49a67

Browse files
committed
There is no longer a stash() accessor.
1 parent 3a4a2d2 commit 3e49a67

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/MetaCPAN/Server.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ use Plack::Middleware::ServerStatus::Lite;
1212

1313
extends 'Catalyst';
1414

15-
has api => ( is => 'ro' );
16-
has '+stash' => ( clearer => 'clear_stash' );
15+
has api => ( is => 'ro' );
16+
17+
sub clear_stash {
18+
%{ $_[0]->stash } = ();
19+
}
1720

1821
__PACKAGE__->apply_request_class_roles(
1922
qw(

0 commit comments

Comments
 (0)