Skip to content
Merged
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
6 changes: 6 additions & 0 deletions layers/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php declare(strict_types=1);

// Force errors to be logged to stdout so that they end up in CloudWatch.
// In the `function` runtime this is already `1`, but in the `fpm` runtime it is `0` by default.
// Here we are forcing it to `1` in the bootstrap process, it will not impact the application code
// as it runs in different processes (FPM worker) and those will have `display_errors=0`.
ini_set('display_errors', '1');

$appRoot = getenv('LAMBDA_TASK_ROOT');

$autoloadPath = $_SERVER['BREF_AUTOLOAD_PATH'] ?? null;
Expand Down