Skip to content

Commit

Permalink
Apply #556 to the PHP function layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Feb 14, 2020
1 parent b8cf31d commit e6bf952
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions runtime/layers/function/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@

$appRoot = getenv('LAMBDA_TASK_ROOT');

/** @noinspection PhpIncludeInspection */
require $appRoot . '/vendor/autoload.php';
if (getenv('BREF_AUTOLOAD_PATH')) {
/** @noinspection PhpIncludeInspection */
require getenv('BREF_AUTOLOAD_PATH');
} else {
/** @noinspection PhpIncludeInspection */
require $appRoot . '/vendor/autoload.php';
}

$lambdaRuntime = LambdaRuntime::fromEnvironmentVariable();

Expand Down

0 comments on commit e6bf952

Please sign in to comment.