File tree 1 file changed +25
-5
lines changed
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
64
64
65
65
### Symfony application
66
66
67
- Use the standard Symfony 5.3+ index.php.
67
+ Use the standard Symfony 5.3+ ` public/ index.php` .
68
68
69
69
``` php
70
70
// public/index.php
@@ -78,6 +78,22 @@ return function (array $context) {
78
78
};
79
79
```
80
80
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
+
81
97
### PSR-15 application
82
98
83
99
``` php
@@ -133,7 +149,7 @@ to serverless.yml
133
149
134
150
### Console application
135
151
136
- Use the standard Symfony 5.3+ bin/console.
152
+ Use the standard Symfony 5.3+ ` bin/console ` .
137
153
138
154
``` php
139
155
// bin/console
@@ -154,7 +170,11 @@ return function (array $context) {
154
170
# serverless.yml
155
171
156
172
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}
160
180
```
You can’t perform that action at this time.
0 commit comments