From c709a4157c845358d5c71159fb06be42cab33a5a Mon Sep 17 00:00:00 2001 From: Fabio Cicerchia Date: Thu, 17 Jun 2021 20:38:21 +0200 Subject: [PATCH] code review --- .gitignore | 4 + composer.json | 5 +- composer.lock | 307 ++++++++++++++++++++++++++++------------------- public/index.php | 6 +- serverless.yml | 1 - src/Kernel.php | 22 +--- symfony.lock | 12 ++ 7 files changed, 209 insertions(+), 148 deletions(-) diff --git a/.gitignore b/.gitignore index a9c3f168..f1eb2283 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,7 @@ yarn-error.log .phpunit.result.cache clover.xml ###< phpunit/phpunit ### + +###> bref/symfony-bridge ### +/.serverless/ +###< bref/symfony-bridge ### diff --git a/composer.json b/composer.json index 55148da0..c5b82e9c 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,10 @@ "ext-iconv": "*", "ext-json": "*", "badges/poser": "^2.0", - "bref/bref": "dev-master", - "bref/extra-php-extensions": "dev-master", "bitbucket/client": "^4.0", + "bref/bref": "^1.2", + "bref/extra-php-extensions": "^0.11", + "bref/symfony-bridge": "^0.1.2", "cache/predis-adapter": "^1.1", "knplabs/github-api": "^3.3", "knplabs/packagist-api": "^1.7", diff --git a/composer.lock b/composer.lock index 787f9f98..759c1725 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6f71c3c00dc41e71a8896504dfe2dbb0", + "content-hash": "42f6e6807734ebfd875dc851e8a04b70", "packages": [ { "name": "async-aws/core", @@ -296,7 +296,7 @@ }, { "name": "bref/bref", - "version": "dev-master", + "version": "1.2.7", "source": { "type": "git", "url": "https://github.com/brefphp/bref.git", @@ -332,7 +332,6 @@ "phpstan/phpstan": "^0.12", "phpunit/phpunit": "^9.0" }, - "default-branch": true, "bin": [ "bref" ], @@ -373,7 +372,7 @@ }, { "name": "bref/extra-php-extensions", - "version": "dev-master", + "version": "0.11.7", "source": { "type": "git", "url": "https://github.com/brefphp/extra-php-extensions.git", @@ -398,7 +397,6 @@ "symfony/http-client": "^5.2", "symfony/process": "^5.0" }, - "default-branch": true, "type": "library", "notification-url": "https://packagist.org/downloads/", "license": [ @@ -423,6 +421,69 @@ ], "time": "2021-06-15T05:59:42+00:00" }, + { + "name": "bref/symfony-bridge", + "version": "0.1.2", + "source": { + "type": "git", + "url": "https://github.com/brefphp/symfony-bridge.git", + "reference": "6156395329df3bb34a9a17c5e440ca8ab76c173f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brefphp/symfony-bridge/zipball/6156395329df3bb34a9a17c5e440ca8ab76c173f", + "reference": "6156395329df3bb34a9a17c5e440ca8ab76c173f", + "shasum": "" + }, + "require": { + "bref/bref": "^1.0", + "php": ">=7.3", + "symfony/filesystem": "^4.4|^5.0", + "symfony/http-kernel": "^4.4|^5.0" + }, + "require-dev": { + "mnapoli/hard-mode": "^0.3.0", + "phpunit/phpunit": "^8.0", + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/process": "^4.4|^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Bref\\SymfonyBridge\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Package that makes Symfony works on AWS Lambda with Bref", + "keywords": [ + "aws", + "lambda", + "symfony" + ], + "support": { + "issues": "https://github.com/brefphp/symfony-bridge/issues", + "source": "https://github.com/brefphp/symfony-bridge/tree/0.1.2" + }, + "funding": [ + { + "url": "https://github.com/Nemo64", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://github.com/mnapoli", + "type": "github" + } + ], + "time": "2021-04-25T21:07:03+00:00" + }, { "name": "cache/adapter-common", "version": "1.2.0", @@ -3124,16 +3185,16 @@ }, { "name": "symfony/asset", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", - "reference": "4c8d354b8931788f2b07953cfe6846e5cda27637" + "reference": "29a4d5e6e39ffe16cea394fd5041d7a638bd580d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/asset/zipball/4c8d354b8931788f2b07953cfe6846e5cda27637", - "reference": "4c8d354b8931788f2b07953cfe6846e5cda27637", + "url": "https://api.github.com/repos/symfony/asset/zipball/29a4d5e6e39ffe16cea394fd5041d7a638bd580d", + "reference": "29a4d5e6e39ffe16cea394fd5041d7a638bd580d", "shasum": "" }, "require": { @@ -3177,7 +3238,7 @@ "description": "Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/asset/tree/v5.3.0" + "source": "https://github.com/symfony/asset/tree/v5.3.2" }, "funding": [ { @@ -3193,7 +3254,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-06T08:05:27+00:00" }, { "name": "symfony/cache", @@ -3372,16 +3433,16 @@ }, { "name": "symfony/config", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "9f4a448c2d7fd2c90882dfff930b627ddbe16810" + "reference": "9c307728cfacbd50914f0db28aee1e0ecd82b99f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/9f4a448c2d7fd2c90882dfff930b627ddbe16810", - "reference": "9f4a448c2d7fd2c90882dfff930b627ddbe16810", + "url": "https://api.github.com/repos/symfony/config/zipball/9c307728cfacbd50914f0db28aee1e0ecd82b99f", + "reference": "9c307728cfacbd50914f0db28aee1e0ecd82b99f", "shasum": "" }, "require": { @@ -3431,7 +3492,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v5.3.0" + "source": "https://github.com/symfony/config/tree/v5.3.2" }, "funding": [ { @@ -3447,20 +3508,20 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-12T10:15:17+00:00" }, { "name": "symfony/console", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "058553870f7809087fa80fa734704a21b9bcaeb2" + "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/058553870f7809087fa80fa734704a21b9bcaeb2", - "reference": "058553870f7809087fa80fa734704a21b9bcaeb2", + "url": "https://api.github.com/repos/symfony/console/zipball/649730483885ff2ca99ca0560ef0e5f6b03f2ac1", + "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1", "shasum": "" }, "require": { @@ -3529,7 +3590,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.3.0" + "source": "https://github.com/symfony/console/tree/v5.3.2" }, "funding": [ { @@ -3545,20 +3606,20 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-12T09:42:48+00:00" }, { "name": "symfony/dependency-injection", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "94d973cb742d8c5c5dcf9534220e6b73b09af1d4" + "reference": "ddbff73bc4fa3d5b415431d486770ab0e72f6516" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/94d973cb742d8c5c5dcf9534220e6b73b09af1d4", - "reference": "94d973cb742d8c5c5dcf9534220e6b73b09af1d4", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/ddbff73bc4fa3d5b415431d486770ab0e72f6516", + "reference": "ddbff73bc4fa3d5b415431d486770ab0e72f6516", "shasum": "" }, "require": { @@ -3617,7 +3678,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v5.3.0" + "source": "https://github.com/symfony/dependency-injection/tree/v5.3.2" }, "funding": [ { @@ -3633,7 +3694,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:57:12+00:00" + "time": "2021-06-12T09:17:04+00:00" }, { "name": "symfony/deprecation-contracts", @@ -4128,16 +4189,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "99196372c703b8cc97ee61d63d98acbf9896d425" + "reference": "120e80e882debd7e705d53a3b054e1a0fae91fbc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/99196372c703b8cc97ee61d63d98acbf9896d425", - "reference": "99196372c703b8cc97ee61d63d98acbf9896d425", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/120e80e882debd7e705d53a3b054e1a0fae91fbc", + "reference": "120e80e882debd7e705d53a3b054e1a0fae91fbc", "shasum": "" }, "require": { @@ -4291,7 +4352,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v5.3.0" + "source": "https://github.com/symfony/framework-bundle/tree/v5.3.2" }, "funding": [ { @@ -4307,20 +4368,20 @@ "type": "tidelift" } ], - "time": "2021-05-31T10:12:54+00:00" + "time": "2021-06-17T13:29:40+00:00" }, { "name": "symfony/http-client", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "ef85ca5fa7a4f9c57592fab49faeccdf22b13136" + "reference": "d2464f48482223c7c6826cd8c6ed7929d1ce6093" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/ef85ca5fa7a4f9c57592fab49faeccdf22b13136", - "reference": "ef85ca5fa7a4f9c57592fab49faeccdf22b13136", + "url": "https://api.github.com/repos/symfony/http-client/zipball/d2464f48482223c7c6826cd8c6ed7929d1ce6093", + "reference": "d2464f48482223c7c6826cd8c6ed7929d1ce6093", "shasum": "" }, "require": { @@ -4378,7 +4439,7 @@ "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-client/tree/v5.3.0" + "source": "https://github.com/symfony/http-client/tree/v5.3.2" }, "funding": [ { @@ -4394,7 +4455,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-12T10:15:17+00:00" }, { "name": "symfony/http-client-contracts", @@ -4476,16 +4537,16 @@ }, { "name": "symfony/http-foundation", - "version": "v5.3.1", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "8827b90cf8806e467124ad476acd15216c2fceb6" + "reference": "7b6dd714d95106b831aaa7f3c9c612ab886516bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8827b90cf8806e467124ad476acd15216c2fceb6", - "reference": "8827b90cf8806e467124ad476acd15216c2fceb6", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/7b6dd714d95106b831aaa7f3c9c612ab886516bd", + "reference": "7b6dd714d95106b831aaa7f3c9c612ab886516bd", "shasum": "" }, "require": { @@ -4529,7 +4590,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.3.1" + "source": "https://github.com/symfony/http-foundation/tree/v5.3.2" }, "funding": [ { @@ -4545,20 +4606,20 @@ "type": "tidelift" } ], - "time": "2021-06-02T09:32:00+00:00" + "time": "2021-06-12T10:15:17+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.3.1", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "74eb022e3bac36b3d3a897951a98759f2b32b864" + "reference": "e7021165d9dbfb4051296b8de827e92c8a7b5c87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/74eb022e3bac36b3d3a897951a98759f2b32b864", - "reference": "74eb022e3bac36b3d3a897951a98759f2b32b864", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/e7021165d9dbfb4051296b8de827e92c8a7b5c87", + "reference": "e7021165d9dbfb4051296b8de827e92c8a7b5c87", "shasum": "" }, "require": { @@ -4641,7 +4702,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.3.1" + "source": "https://github.com/symfony/http-kernel/tree/v5.3.2" }, "funding": [ { @@ -4657,7 +4718,7 @@ "type": "tidelift" } ], - "time": "2021-06-02T10:07:12+00:00" + "time": "2021-06-17T14:18:27+00:00" }, { "name": "symfony/options-resolver", @@ -4730,16 +4791,16 @@ }, { "name": "symfony/password-hasher", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/password-hasher.git", - "reference": "d487faef0347d5351d3e361e123a73496595509f" + "reference": "02320f981e26fdbeeaae575911e0afa7bdcae988" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/password-hasher/zipball/d487faef0347d5351d3e361e123a73496595509f", - "reference": "d487faef0347d5351d3e361e123a73496595509f", + "url": "https://api.github.com/repos/symfony/password-hasher/zipball/02320f981e26fdbeeaae575911e0afa7bdcae988", + "reference": "02320f981e26fdbeeaae575911e0afa7bdcae988", "shasum": "" }, "require": { @@ -4783,7 +4844,7 @@ "password" ], "support": { - "source": "https://github.com/symfony/password-hasher/tree/v5.3.0" + "source": "https://github.com/symfony/password-hasher/tree/v5.3.2" }, "funding": [ { @@ -4799,7 +4860,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-11T14:36:11+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5455,16 +5516,16 @@ }, { "name": "symfony/process", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "53e36cb1c160505cdaf1ef201501669c4c317191" + "reference": "714b47f9196de61a196d86c4bad5f09201b307df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/53e36cb1c160505cdaf1ef201501669c4c317191", - "reference": "53e36cb1c160505cdaf1ef201501669c4c317191", + "url": "https://api.github.com/repos/symfony/process/zipball/714b47f9196de61a196d86c4bad5f09201b307df", + "reference": "714b47f9196de61a196d86c4bad5f09201b307df", "shasum": "" }, "require": { @@ -5497,7 +5558,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.3.0" + "source": "https://github.com/symfony/process/tree/v5.3.2" }, "funding": [ { @@ -5513,7 +5574,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T12:52:38+00:00" + "time": "2021-06-12T10:15:01+00:00" }, { "name": "symfony/psr-http-message-bridge", @@ -5695,16 +5756,16 @@ }, { "name": "symfony/runtime", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/runtime.git", - "reference": "d119a381b76eb39c5c4f4ee284cb1dd431109c7c" + "reference": "876ad7ce168c893550d20a1da58f52d3ec4eb574" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/runtime/zipball/d119a381b76eb39c5c4f4ee284cb1dd431109c7c", - "reference": "d119a381b76eb39c5c4f4ee284cb1dd431109c7c", + "url": "https://api.github.com/repos/symfony/runtime/zipball/876ad7ce168c893550d20a1da58f52d3ec4eb574", + "reference": "876ad7ce168c893550d20a1da58f52d3ec4eb574", "shasum": "" }, "require": { @@ -5752,7 +5813,7 @@ "description": "Enables decoupling PHP applications from global state", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/runtime/tree/v5.3.0" + "source": "https://github.com/symfony/runtime/tree/v5.3.2" }, "funding": [ { @@ -5768,20 +5829,20 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-11T12:51:21+00:00" }, { "name": "symfony/security-core", - "version": "v5.3.1", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "22714af1f701937a0a0bd3e3ec2a761baed3f2d0" + "reference": "dc44d2a4275345621266356f6cb7ef6e0864c3fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/22714af1f701937a0a0bd3e3ec2a761baed3f2d0", - "reference": "22714af1f701937a0a0bd3e3ec2a761baed3f2d0", + "url": "https://api.github.com/repos/symfony/security-core/zipball/dc44d2a4275345621266356f6cb7ef6e0864c3fa", + "reference": "dc44d2a4275345621266356f6cb7ef6e0864c3fa", "shasum": "" }, "require": { @@ -5845,7 +5906,7 @@ "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-core/tree/v5.3.1" + "source": "https://github.com/symfony/security-core/tree/v5.3.2" }, "funding": [ { @@ -5861,7 +5922,7 @@ "type": "tidelift" } ], - "time": "2021-06-01T15:43:02+00:00" + "time": "2021-06-15T17:42:09+00:00" }, { "name": "symfony/service-contracts", @@ -5944,16 +6005,16 @@ }, { "name": "symfony/string", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b" + "reference": "0732e97e41c0a590f77e231afc16a327375d50b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/a9a0f8b6aafc5d2d1c116dcccd1573a95153515b", - "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b", + "url": "https://api.github.com/repos/symfony/string/zipball/0732e97e41c0a590f77e231afc16a327375d50b0", + "reference": "0732e97e41c0a590f77e231afc16a327375d50b0", "shasum": "" }, "require": { @@ -6007,7 +6068,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.3.0" + "source": "https://github.com/symfony/string/tree/v5.3.2" }, "funding": [ { @@ -6023,20 +6084,20 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-06T09:51:56+00:00" }, { "name": "symfony/var-dumper", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "1d3953e627fe4b5f6df503f356b6545ada6351f3" + "reference": "905a22c68b292ffb6f20d7636c36b220d1fba5ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/1d3953e627fe4b5f6df503f356b6545ada6351f3", - "reference": "1d3953e627fe4b5f6df503f356b6545ada6351f3", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/905a22c68b292ffb6f20d7636c36b220d1fba5ae", + "reference": "905a22c68b292ffb6f20d7636c36b220d1fba5ae", "shasum": "" }, "require": { @@ -6095,7 +6156,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.3.0" + "source": "https://github.com/symfony/var-dumper/tree/v5.3.2" }, "funding": [ { @@ -6111,20 +6172,20 @@ "type": "tidelift" } ], - "time": "2021-05-27T12:28:50+00:00" + "time": "2021-06-06T09:51:56+00:00" }, { "name": "symfony/var-exporter", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "7a7c9dd972541f78e7815c03c0bae9f81e0e9dbb" + "reference": "df663fb63bdcd7298373cbd431165ab031706cb2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/7a7c9dd972541f78e7815c03c0bae9f81e0e9dbb", - "reference": "7a7c9dd972541f78e7815c03c0bae9f81e0e9dbb", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/df663fb63bdcd7298373cbd431165ab031706cb2", + "reference": "df663fb63bdcd7298373cbd431165ab031706cb2", "shasum": "" }, "require": { @@ -6168,7 +6229,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v5.3.0" + "source": "https://github.com/symfony/var-exporter/tree/v5.3.2" }, "funding": [ { @@ -6184,7 +6245,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:40:38+00:00" + "time": "2021-06-09T10:57:10+00:00" }, { "name": "symfony/webpack-encore-bundle", @@ -6259,16 +6320,16 @@ }, { "name": "symfony/yaml", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "3bbcf262fceb3d8f48175302e6ba0ac96e3a5a11" + "reference": "71719ab2409401711d619765aa255f9d352a59b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/3bbcf262fceb3d8f48175302e6ba0ac96e3a5a11", - "reference": "3bbcf262fceb3d8f48175302e6ba0ac96e3a5a11", + "url": "https://api.github.com/repos/symfony/yaml/zipball/71719ab2409401711d619765aa255f9d352a59b2", + "reference": "71719ab2409401711d619765aa255f9d352a59b2", "shasum": "" }, "require": { @@ -6314,7 +6375,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.3.0" + "source": "https://github.com/symfony/yaml/tree/v5.3.2" }, "funding": [ { @@ -6330,7 +6391,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-06T09:51:56+00:00" } ], "packages-dev": [ @@ -7100,16 +7161,16 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "0.12.19", + "version": "0.12.20", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "52f7072ddc5f81492f9d2de65a24813a48c90b18" + "reference": "efc009981af383eb3303f0ca9868c29acad7ce74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/52f7072ddc5f81492f9d2de65a24813a48c90b18", - "reference": "52f7072ddc5f81492f9d2de65a24813a48c90b18", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/efc009981af383eb3303f0ca9868c29acad7ce74", + "reference": "efc009981af383eb3303f0ca9868c29acad7ce74", "shasum": "" }, "require": { @@ -7120,10 +7181,9 @@ "phpunit/phpunit": "<7.0" }, "require-dev": { - "phing/phing": "^2.16.3", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpstan-strict-rules": "^0.12.6", - "phpunit/phpunit": "^7.5.20" + "phpunit/phpunit": "^9.5" }, "type": "phpstan-extension", "extra": { @@ -7149,22 +7209,22 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/0.12.19" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/0.12.20" }, - "time": "2021-04-30T11:10:37+00:00" + "time": "2021-06-17T08:28:30+00:00" }, { "name": "phpstan/phpstan-symfony", - "version": "0.12.36", + "version": "0.12.37", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-symfony.git", - "reference": "c3ac708fc1860146e35760b16b8eb2a08dd25d62" + "reference": "45e2ae29f6f53f5039b3d5c401dfc26724d8f5bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/c3ac708fc1860146e35760b16b8eb2a08dd25d62", - "reference": "c3ac708fc1860146e35760b16b8eb2a08dd25d62", + "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/45e2ae29f6f53f5039b3d5c401dfc26724d8f5bb", + "reference": "45e2ae29f6f53f5039b3d5c401dfc26724d8f5bb", "shasum": "" }, "require": { @@ -7218,9 +7278,9 @@ "description": "Symfony Framework extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-symfony/issues", - "source": "https://github.com/phpstan/phpstan-symfony/tree/0.12.36" + "source": "https://github.com/phpstan/phpstan-symfony/tree/0.12.37" }, - "time": "2021-06-10T12:35:06+00:00" + "time": "2021-06-16T13:00:16+00:00" }, { "name": "symfony/browser-kit", @@ -8204,16 +8264,16 @@ }, { "name": "symfony/web-profiler-bundle", - "version": "v5.3.0", + "version": "v5.3.2", "source": { "type": "git", "url": "https://github.com/symfony/web-profiler-bundle.git", - "reference": "275350559a4817881419ac959ceb3b308199fcf2" + "reference": "8feb731cfc248cce5c0ac6eeba63ec4923c6a264" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/275350559a4817881419ac959ceb3b308199fcf2", - "reference": "275350559a4817881419ac959ceb3b308199fcf2", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/8feb731cfc248cce5c0ac6eeba63ec4923c6a264", + "reference": "8feb731cfc248cce5c0ac6eeba63ec4923c6a264", "shasum": "" }, "require": { @@ -8262,7 +8322,7 @@ "description": "Provides a development tool that gives detailed information about the execution of any request", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/web-profiler-bundle/tree/v5.3.0" + "source": "https://github.com/symfony/web-profiler-bundle/tree/v5.3.2" }, "funding": [ { @@ -8278,7 +8338,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-06-07T14:51:59+00:00" }, { "name": "twig/twig", @@ -8359,10 +8419,7 @@ ], "aliases": [], "minimum-stability": "beta", - "stability-flags": { - "bref/bref": 20, - "bref/extra-php-extensions": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/public/index.php b/public/index.php index 94b6e5e1..9982c218 100644 --- a/public/index.php +++ b/public/index.php @@ -2,6 +2,8 @@ use App\Kernel; -require_once \dirname(__DIR__).'/vendor/autoload_runtime.php'; +require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return fn (array $context) => new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); +return function (array $context) { + return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); +}; diff --git a/serverless.yml b/serverless.yml index 8e032d3e..f8827191 100644 --- a/serverless.yml +++ b/serverless.yml @@ -23,7 +23,6 @@ plugins: package: exclude: - - .circleci/** - .git/** - .github/** - docker/** diff --git a/src/Kernel.php b/src/Kernel.php index 89b20112..64502276 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -2,12 +2,13 @@ namespace App; +use Bref\SymfonyBridge\BrefKernel; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; -final class Kernel extends BaseKernel +final class Kernel extends BrefKernel { use MicroKernelTrait; @@ -36,23 +37,8 @@ protected function configureRoutes(RoutingConfigurator $routes): void } } - public function getLogDir() + protected function getWritableCacheDirectories(): array { - // When on the lambda only /tmp is writeable - if (false == \getenv('DOCKER_COMPOSE') && false !== \getenv('LAMBDA_TASK_ROOT')) { - return '/tmp/log/'; - } - - return parent::getLogDir(); - } - - public function getCacheDir() - { - // When on the lambda only /tmp is writeable - if (false == \getenv('DOCKER_COMPOSE') && false !== \getenv('LAMBDA_TASK_ROOT')) { - return '/tmp/cache/'.$this->environment; - } - - return parent::getCacheDir(); + return []; } } diff --git a/symfony.lock b/symfony.lock index 0df9e138..7bb032b5 100644 --- a/symfony.lock +++ b/symfony.lock @@ -17,6 +17,18 @@ "bref/extra-php-extensions": { "version": "dev-master" }, + "bref/symfony-bridge": { + "version": "0.1", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "0.1", + "ref": "f20b0f232526b14d5e4734030b47ad6c887757a9" + }, + "files": [ + "serverless.yml" + ] + }, "cache/adapter-common": { "version": "1.1.0" },