File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed
Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ composer require bref/extra-php-extensions
6464
6565### Symfony application
6666
67- Use the standard Symfony 5.3+ index.php.
67+ Use the standard Symfony 5.3+ ` public/ index.php` .
6868
6969``` php
7070// public/index.php
@@ -78,6 +78,22 @@ return function (array $context) {
7878};
7979```
8080
81+ ``` diff
82+ # serverless.yml
83+
84+ functions:
85+ web:
86+ handler: public/index.php
87+ timeout: 28
88+ layers:
89+ - - ${bref:layer.php-80-fpm}
90+ + - ${bref:layer.php-80}
91+ + - ${bref-extra:symfony-runtime-php-80}
92+ events:
93+ - httpApi: '*'
94+ ```
95+
96+
8197### PSR-15 application
8298
8399``` php
@@ -133,7 +149,7 @@ to serverless.yml
133149
134150### Console application
135151
136- Use the standard Symfony 5.3+ bin/console.
152+ Use the standard Symfony 5.3+ ` bin/console ` .
137153
138154``` php
139155// bin/console
@@ -154,7 +170,11 @@ return function (array $context) {
154170 # serverless.yml
155171
156172 functions:
157- app:
158- - handler: public/index.php
159- + handler: bin/console
173+ console:
174+ handler: bin/console
175+ timeout: 120
176+ layers:
177+ - ${bref:layer.php-80}
178+ - - ${bref:layer.console}
179+ + - ${bref-extra:symfony-runtime-php-80}
160180```
You can’t perform that action at this time.
0 commit comments