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
HttpKernelBridge does and ugly autoload include relative to the current directory in https://github.com/php-pm/php-pm-httpkernel/blob/master/Bridges/HttpKernel.php#L39:
HttpKernelBridge
require_once './vendor/autoload.php';
This will be wrong if the working directory is different from the base path of the script including the kernel adapter.
I'd rather suggest
require_once dirname(realpath($_SERVER['SCRIPT_NAME'])) . '/vendor/autoload.php';
Sounds good?
Alternatively we good assume that the appBootstrap itself will be able to the path accordingly. Maybe better make the require and optional include?
appBootstrap
require
include
The text was updated successfully, but these errors were encountered:
If that works correctly within CLI call, then yeah :)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
HttpKernelBridge
does and ugly autoload include relative to the current directory in https://github.com/php-pm/php-pm-httpkernel/blob/master/Bridges/HttpKernel.php#L39:This will be wrong if the working directory is different from the base path of the script including the kernel adapter.
I'd rather suggest
Sounds good?
Alternatively we good assume that the
appBootstrap
itself will be able to the path accordingly. Maybe better make therequire
and optionalinclude
?The text was updated successfully, but these errors were encountered: