We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello there!
Thanks for the amazing work with Frankenphp. It would be nice if frankenphp runtime could handle a Response object in the runtime. The SymfonyRuntime does handle it : https://github.com/symfony/runtime/blob/9889783c17e8a68fa5e88c8e8a1a85e802558dba/SymfonyRuntime.php#L137
Response
SymfonyRuntime
One of the use case can be:
return function (array $context) { if ($context['APP_MAINTENANCE'] ?? false) { return new Response('MAINTENANCE IN PROGRESS', Response::HTTP_SERVICE_UNAVAILABLE); } return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); };
I could make a PR if needed.
The text was updated successfully, but these errors were encountered:
see php-runtime/runtime#177
Sorry, something went wrong.
No branches or pull requests
Hello there!
Thanks for the amazing work with Frankenphp.
It would be nice if frankenphp runtime could handle a
Response
object in the runtime.The
SymfonyRuntime
does handle it : https://github.com/symfony/runtime/blob/9889783c17e8a68fa5e88c8e8a1a85e802558dba/SymfonyRuntime.php#L137One of the use case can be:
I could make a PR if needed.
The text was updated successfully, but these errors were encountered: