We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2c343 commit 33dbd2eCopy full SHA for 33dbd2e
src/main/php/xp/lambda/RunLambda.class.php
@@ -43,8 +43,7 @@ public function run(): int {
43
$environment= $_ENV + ['AWS_LAMBDA_FUNCTION_NAME' => $name, 'AWS_REGION' => $region, 'AWS_LOCAL' => true];
44
45
try {
46
- $target= $this->impl->newInstance(new Environment(getcwd(), Console::$out, $environment))->target();
47
- $lambda= $target instanceof Lambda ? [$target, 'process'] : $target;
+ $lambda= $this->impl->newInstance(new Environment(getcwd(), Console::$out, $environment))->lambda();
48
} catch (Throwable $e) {
49
Console::$err->writeLine($e);
50
return 127;
0 commit comments