@@ -9,6 +9,7 @@ use Thunderhorse::Request;
99use Thunderhorse::Response;
1010use Thunderhorse::WebSocket;
1111use Thunderhorse::SSE;
12+ use PAGI::Stash;
1213
1314extends ' Gears::Context' ;
1415
@@ -26,7 +27,6 @@ has field 'match' => (
2627has field ' req' => (
2728 (STRICT ? (isa => InstanceOf [' Thunderhorse::Request' ]) : ()),
2829 default => sub ($self ) { Thunderhorse::Request-> new(context => $self ) },
29- handles => [qw( stash) ],
3030);
3131
3232has field ' res' => (
@@ -48,6 +48,11 @@ has field 'sse' => (
4848 lazy => sub ($self ) { Thunderhorse::SSE-> new(context => $self ) },
4949);
5050
51+ has field ' stash' => (
52+ (STRICT ? (isa => InstanceOf [' PAGI::Stash' ]) : ()),
53+ default => sub ($self ) { PAGI::Stash-> new($self ) },
54+ );
55+
5156has field ' _consumed' => (
5257 (STRICT ? (isa => Bool) : ()),
5358 writer => 1,
@@ -176,6 +181,10 @@ Events scope.
176181
177182B<predicate: > C<has_sse >
178183
184+ =head3 stash
185+
186+ The <PAGI::Stash> object for this context. Created automatically.
187+
179188=head2 Methods
180189
181190=head3 new
@@ -185,10 +194,6 @@ B<predicate:> C<has_sse>
185194Standard Mooish constructor. Consult L</Attributes> section for available
186195constructor arguments.
187196
188- =head3 stash
189-
190- Delegated method for L<PAGI::Request/stash>
191-
192197=head3 scope
193198
194199 $scope = $ctx->scope()
0 commit comments