Trying to properly upgrade for PHP 8.0 support.

This commit is contained in:
Alexey Skobkin 2021-02-20 18:34:58 +03:00
parent eb31c4e445
commit b8b5b4bfbc
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
6 changed files with 883 additions and 871 deletions

View file

@ -19,8 +19,9 @@
"ext-json": "*", "ext-json": "*",
"babdev/pagerfanta-bundle": "^2.4", "babdev/pagerfanta-bundle": "^2.4",
"excelwebzone/recaptcha-bundle": "^1.5", "excelwebzone/recaptcha-bundle": "^1.5",
"pugx/sentry-sdk": "^2.0",
"sensio/framework-extra-bundle": "^5.1", "sensio/framework-extra-bundle": "^5.1",
"sentry/sentry-symfony": "^3.4", "sentry/sentry-symfony": "^4",
"suin/php-rss-writer": "^1.6", "suin/php-rss-writer": "^1.6",
"symfony/asset": "^4.1", "symfony/asset": "^4.1",
"symfony/console": "^4.1", "symfony/console": "^4.1",

1650
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
services:
# Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories)
Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory'
# Register nyholm/psr7 services for autowiring with HTTPlug factories
Http\Message\MessageFactory: '@nyholm.psr7.httplug_factory'
Http\Message\RequestFactory: '@nyholm.psr7.httplug_factory'
Http\Message\ResponseFactory: '@nyholm.psr7.httplug_factory'
Http\Message\StreamFactory: '@nyholm.psr7.httplug_factory'
Http\Message\UriFactory: '@nyholm.psr7.httplug_factory'
nyholm.psr7.psr17_factory:
class: Nyholm\Psr7\Factory\Psr17Factory
nyholm.psr7.httplug_factory:
class: Nyholm\Psr7\Factory\HttplugFactory

View file

@ -0,0 +1,21 @@
services:
_defaults:
autowire: true
autoconfigure: true
Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface:
'@Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory'
Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface:
'@Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory'
Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory: null
Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory: null
# Uncomment the following line to allow controllers to receive a
# PSR-7 server request object instead of an HttpFoundation request
#Symfony\Bridge\PsrHttpMessage\ArgumentValueResolver\PsrServerRequestResolver: null
# Uncomment the following line to allow controllers to return a
# PSR-7 response object instead of an HttpFoundation response
#Symfony\Bridge\PsrHttpMessage\EventListener\PsrResponseListener: null

View file

@ -1,11 +1,19 @@
sentry: sentry:
options: options:
send_default_pii: true send_default_pii: true
excluded_exceptions: integrations:
- 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' - 'Sentry\Integration\IgnoreErrorsIntegration'
- 'Symfony\Component\HttpKernel\Exception\BadRequestHttpException'
- 'Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException' services:
monolog: Sentry\Integration\IgnoreErrorsIntegration:
error_handler: arguments:
enabled: true $options:
level: error ignore_exceptions:
- 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'
- 'Symfony\Component\HttpKernel\Exception\BadRequestHttpException'
- 'Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException'
Sentry\Monolog\Handler:
arguments:
$hub: '@Sentry\State\HubInterface'
$level: !php/const Monolog\Logger::ERROR

View file

@ -68,9 +68,6 @@
"doctrine/persistence": { "doctrine/persistence": {
"version": "v1.0.1" "version": "v1.0.1"
}, },
"doctrine/reflection": {
"version": "v1.0.0"
},
"doctrine/sql-formatter": { "doctrine/sql-formatter": {
"version": "1.1.0" "version": "1.1.0"
}, },
@ -108,9 +105,6 @@
"guzzlehttp/psr7": { "guzzlehttp/psr7": {
"version": "1.6.1" "version": "1.6.1"
}, },
"http-interop/http-factory-guzzle": {
"version": "1.0.0"
},
"jean85/pretty-package-versions": { "jean85/pretty-package-versions": {
"version": "1.2" "version": "1.2"
}, },
@ -126,6 +120,18 @@
"monolog/monolog": { "monolog/monolog": {
"version": "1.23.0" "version": "1.23.0"
}, },
"nyholm/psr7": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "7c0a9352a57376f04f5444e74565102c3a23d0c7"
},
"files": [
"config/packages/nyholm_psr7.yaml"
]
},
"ocramius/package-versions": { "ocramius/package-versions": {
"version": "1.3.0" "version": "1.3.0"
}, },
@ -136,7 +142,7 @@
"version": "v2.3.0" "version": "v2.3.0"
}, },
"php": { "php": {
"version": "7.4" "version": "8.0"
}, },
"php-http/client-common": { "php-http/client-common": {
"version": "2.1.0" "version": "2.1.0"
@ -375,6 +381,18 @@
"symfony/property-info": { "symfony/property-info": {
"version": "v4.1.0" "version": "v4.1.0"
}, },
"symfony/psr-http-message-bridge": {
"version": "2.1",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "2.1",
"ref": "df8ec1e90aec60d301ec59a22093fc3febedb795"
},
"files": [
"config/packages/psr_http_message_bridge.yaml"
]
},
"symfony/routing": { "symfony/routing": {
"version": "4.0", "version": "4.0",
"recipe": { "recipe": {
@ -477,9 +495,6 @@
"twig/twig": { "twig/twig": {
"version": "v2.4.8" "version": "v2.4.8"
}, },
"webimpress/safe-writer": {
"version": "2.0.0"
},
"webmozart/assert": { "webmozart/assert": {
"version": "1.3.0" "version": "1.3.0"
}, },