Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Catalyst::Middleware::Stash #2

Merged
merged 2 commits into from
Nov 22, 2017
Merged

Load Catalyst::Middleware::Stash #2

merged 2 commits into from
Nov 22, 2017

Conversation

robrwo
Copy link

@robrwo robrwo commented Oct 31, 2017

This fixes #1.

@robrwo
Copy link
Author

robrwo commented Oct 31, 2017

This also appears to fix RT 119477

Copy link
Owner

@edenc edenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solution strategy looks good. Implementation must change.

my $env = shift;
if (eval { $Catalyst::VERSION } >= 5.90070) {
Class::Load::load_class('Catalyst::Middleware::Stash');
$env->{Catalyst::Middleware::Stash::PSGI_KEY()} //=
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to use the standard Plack middleware API instead of _create_stash. This will make it more forward-compatible.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Author

@robrwo robrwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes made using your patch. It passes tests.

@edenc edenc merged commit 39d0ab9 into edenc:master Nov 22, 2017
@robrwo
Copy link
Author

robrwo commented Nov 24, 2017

Any plans to release soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Catalyst stash is missing
2 participants