Skip to content

Commit

Permalink
Merge pull request #136 from alustau/implement-custom-vendor-placement
Browse files Browse the repository at this point in the history
  • Loading branch information
deleugpn authored Nov 6, 2023
2 parents 06438bc + cf8341c commit e6b346c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/HandlerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ private function resolveBootstrapLocation(): string
return $bootstrapFile;
}

// Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src`
// to the Laravel root folder so we can navigate to `bootstrap/app.php`
// Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src`
// to the Laravel root folder so we can navigate to `bootstrap/app.php`
if (file_exists(__DIR__ . '/../../../../bootstrap/app.php')) {
return realpath(__DIR__ . '/../../../../bootstrap/app.php');
}
Expand Down
6 changes: 3 additions & 3 deletions src/bref-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
return;
}

$defaultConfigCachePath = $laravelHome . '/bootstrap/cache/config.php';
$defaultConfigCachePath = $laravelHome . '/bootstrap/cache/config.php';

if (file_exists($defaultConfigCachePath)) {
return;
Expand All @@ -54,11 +54,11 @@
function resolveBootstrapLocation(): string
{
$laravelHome = $_SERVER['LAMBDA_TASK_ROOT'] . '/bootstrap/cache/config.php';

if (file_exists($laravelHome)) {
return $_SERVER['LAMBDA_TASK_ROOT'];
}

// Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` to the Laravel root folder
// Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` to the Laravel root folder
return realpath(__DIR__ . '/../../../../');
}

0 comments on commit e6b346c

Please sign in to comment.