提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

0
vendor/symfony/psr-http-message-bridge/.php-cs-fixer.dist.php vendored Executable file → Normal file
View File

4
vendor/symfony/psr-http-message-bridge/CHANGELOG.md vendored Executable file → Normal file
View File

@ -1,6 +1,10 @@
CHANGELOG
=========
# 2.3.1 (2023-07-26)
* Don't rely on `Request::getPayload()` to populate the parsed body
# 2.3.0 (2023-07-25)
* Leverage `Request::getPayload()` to populate the parsed body of PSR-7 requests

View File

View File

@ -221,13 +221,13 @@ class HttpFoundationFactory implements HttpFoundationFactoryInterface
return new Cookie(
$cookieName,
$cookieValue,
isset($cookieExpire) ? $cookieExpire : 0,
isset($cookiePath) ? $cookiePath : '/',
isset($cookieDomain) ? $cookieDomain : null,
$cookieExpire ?? 0,
$cookiePath ?? '/',
$cookieDomain ?? null,
isset($cookieSecure),
isset($cookieHttpOnly),
true,
isset($samesite) ? $samesite : null
$samesite ?? null
);
}

11
vendor/symfony/psr-http-message-bridge/Factory/PsrHttpFactory.php vendored Executable file → Normal file
View File

@ -20,7 +20,6 @@ use Psr\Http\Message\UploadedFileFactoryInterface;
use Psr\Http\Message\UploadedFileInterface;
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Exception\JsonException;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@ -79,11 +78,11 @@ class PsrHttpFactory implements HttpMessageFactoryInterface
$format = $symfonyRequest->getContentType();
}
if (method_exists(Request::class, 'getPayload') && 'json' === $format) {
try {
$parsedBody = $symfonyRequest->getPayload()->all();
} catch (JsonException $e) {
$parsedBody = [];
if ('json' === $format) {
$parsedBody = json_decode($symfonyRequest->getContent(), true, 512, \JSON_BIGINT_AS_STRING);
if (!\is_array($parsedBody)) {
$parsedBody = null;
}
} else {
$parsedBody = $symfonyRequest->request->all();

0
vendor/symfony/psr-http-message-bridge/Factory/UploadedFile.php vendored Executable file → Normal file
View File

View File

View File

0
vendor/symfony/psr-http-message-bridge/LICENSE vendored Executable file → Normal file
View File

0
vendor/symfony/psr-http-message-bridge/README.md vendored Executable file → Normal file
View File

0
vendor/symfony/psr-http-message-bridge/composer.json vendored Executable file → Normal file
View File