From 4f5ea503c1a4ecb0a165bf6f130b567990120e1a Mon Sep 17 00:00:00 2001 From: klunejko Date: Thu, 13 Mar 2025 19:39:03 +0100 Subject: [PATCH] Updated Function Runtime Documentation for Symfony Updated Function Runtime documentation and added missing information for integrating with Symfony. --- docs/runtimes/function.mdx | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/runtimes/function.mdx b/docs/runtimes/function.mdx index 3f6e73d15..ebcbc11c9 100644 --- a/docs/runtimes/function.mdx +++ b/docs/runtimes/function.mdx @@ -158,14 +158,47 @@ It is also possible to directly define PHP classes as AWS Lambda handlers. handler: MyApp\Handler ``` - - Set the class name as the `handler` and Bref will retrieve that class from Symfony's service container. + + Create a file that returns the Symfony Kernel (MUST be located at `public/index.php`) + ```php filename="public/index.php" + To achieve that, you must integrate Bref with your framework's Dependency Injection Container.