Skip to content

Commit

Permalink
Add support for the new Bref hooks
Browse files Browse the repository at this point in the history
See #1411
  • Loading branch information
mnapoli committed Feb 13, 2023
1 parent 93a7f18 commit 7bf1285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require": {
"php": ">=8.0.0",
"ext-posix": "*",
"bref/bref": "^2.0@beta",
"bref/bref": "^2.0.0-beta-12",
"symfony/process": "^4.2|^5.0|^6.0",
"hollodotme/fast-cgi-client": "^3.0"
},
Expand Down
3 changes: 3 additions & 0 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php declare(strict_types=1);

use Bref\Bref;
use Bref\FpmRuntime\FpmHandler;
use Bref\Runtime\LambdaRuntime;
use Bref\Secrets\Secrets;
Expand All @@ -24,6 +25,8 @@

Secrets::decryptSecretEnvironmentVariables();

Bref::triggerHooks('beforeStartup');

$lambdaRuntime = LambdaRuntime::fromEnvironmentVariable('fpm');

$appRoot = getenv('LAMBDA_TASK_ROOT');
Expand Down

0 comments on commit 7bf1285

Please sign in to comment.