We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb8ad87 commit 6e79ae0Copy full SHA for 6e79ae0
lib/plugin.js
@@ -28,17 +28,16 @@ export async function plugin (server, opts) {
28
done(null, body)
29
})
30
31
+ const php = new Php({
32
+ argv: process.argv,
33
+ docroot
34
+ })
35
+
36
for (const method of HTTP_METHODS) {
37
server.route({
38
method,
39
url: '/*',
40
handler: async (req, reply) => {
- // TODO(mcollina): this should be cached outside
- const php = new Php({
- argv: process.argv,
- docroot
- })
41
-
42
const url = urlForRequest(req)
43
44
// Php needs capitalized headers
0 commit comments