Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|
*/

$basePath = $_SERVER['APP_BASE_PATH'] ?? $_ENV['APP_BASE_PATH'] ?? $serverState['octaneConfig']['base_path'] ?? null;
$basePath = $_SERVER['APP_BASE_PATH'] ?? getenv('APP_BASE_PATH') ?? $serverState['octaneConfig']['base_path'] ?? null;

if (! is_string($basePath)) {
echo 'Cannot find application base path.';
Expand All @@ -35,7 +35,7 @@
|
*/

$vendorDir = $_ENV['COMPOSER_VENDOR_DIR'] ?? "{$basePath}/vendor";
$vendorDir = getenv('COMPOSER_VENDOR_DIR') ?? "{$basePath}/vendor";

if (! is_file($autoload_file = "{$vendorDir}/autoload.php")) {
echo "Composer autoload file was not found. Did you install the project's dependencies?";
Expand Down
Loading