composer update

This commit is contained in:
2020-12-21 11:01:29 +00:00
parent 064cd2244b
commit e7b3093986
342 changed files with 2055 additions and 23814 deletions

View File

@@ -14,6 +14,7 @@ namespace Symfony\Component\HttpKernel\DataCollector;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\VarDumper\Cloner\Data;
use Symfony\Component\VarDumper\Cloner\VarCloner;
@@ -43,6 +44,7 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
private $sourceContextProvider;
/**
* @param string|FileLinkFormatter|null $fileLinkFormat
* @param DataDumperInterface|Connection|null $dumper
*/
public function __construct(Stopwatch $stopwatch = null, $fileLinkFormat = null, string $charset = null, RequestStack $requestStack = null, $dumper = null)

View File

@@ -53,12 +53,7 @@ class RequestDataCollector extends DataCollector implements EventSubscriberInter
}
}
try {
$content = $request->getContent();
} catch (\LogicException $e) {
// the user already got the request content as a resource
$content = false;
}
$content = $request->getContent();
$sessionMetadata = [];
$sessionAttributes = [];

View File

@@ -37,7 +37,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
*/
abstract class AbstractSessionListener implements EventSubscriberInterface
{
const NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl';
public const NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl';
protected $container;
private $sessionUsageStack = [];

View File

@@ -21,8 +21,8 @@ use Symfony\Component\HttpFoundation\Response;
*/
interface HttpKernelInterface
{
const MASTER_REQUEST = 1;
const SUB_REQUEST = 2;
public const MASTER_REQUEST = 1;
public const SUB_REQUEST = 2;
/**
* Handles a Request to convert it to a Response.

View File

@@ -76,15 +76,15 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
private static $freshCache = [];
const VERSION = '4.4.17';
const VERSION_ID = 40417;
const MAJOR_VERSION = 4;
const MINOR_VERSION = 4;
const RELEASE_VERSION = 17;
const EXTRA_VERSION = '';
public const VERSION = '4.4.18';
public const VERSION_ID = 40418;
public const MAJOR_VERSION = 4;
public const MINOR_VERSION = 4;
public const RELEASE_VERSION = 18;
public const EXTRA_VERSION = '';
const END_OF_MAINTENANCE = '11/2022';
const END_OF_LIFE = '11/2023';
public const END_OF_MAINTENANCE = '11/2022';
public const END_OF_LIFE = '11/2023';
public function __construct(string $environment, bool $debug)
{
@@ -858,6 +858,9 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
// replace multiple new lines with a single newline
$rawChunk .= preg_replace(['/\n{2,}/S'], "\n", $token[1]);
} elseif (\in_array($token[0], [\T_COMMENT, \T_DOC_COMMENT])) {
if (!\in_array($rawChunk[\strlen($rawChunk) - 1], [' ', "\n", "\r", "\t"], true)) {
$rawChunk .= ' ';
}
$ignoreSpace = true;
} else {
$rawChunk .= $token[1];
@@ -865,6 +868,8 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
// The PHP-open tag already has a new-line
if (\T_OPEN_TAG === $token[0]) {
$ignoreSpace = true;
} else {
$ignoreSpace = false;
}
}
}

View File

@@ -27,7 +27,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\RequestEvent")
*/
const REQUEST = 'kernel.request';
public const REQUEST = 'kernel.request';
/**
* The EXCEPTION event occurs when an uncaught exception appears.
@@ -37,7 +37,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\ExceptionEvent")
*/
const EXCEPTION = 'kernel.exception';
public const EXCEPTION = 'kernel.exception';
/**
* The VIEW event occurs when the return value of a controller
@@ -48,7 +48,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\ViewEvent")
*/
const VIEW = 'kernel.view';
public const VIEW = 'kernel.view';
/**
* The CONTROLLER event occurs once a controller was found for
@@ -59,7 +59,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\ControllerEvent")
*/
const CONTROLLER = 'kernel.controller';
public const CONTROLLER = 'kernel.controller';
/**
* The CONTROLLER_ARGUMENTS event occurs once controller arguments have been resolved.
@@ -69,7 +69,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent")
*/
const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments';
public const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments';
/**
* The RESPONSE event occurs once a response was created for
@@ -80,7 +80,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\ResponseEvent")
*/
const RESPONSE = 'kernel.response';
public const RESPONSE = 'kernel.response';
/**
* The TERMINATE event occurs once a response was sent.
@@ -89,7 +89,7 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\TerminateEvent")
*/
const TERMINATE = 'kernel.terminate';
public const TERMINATE = 'kernel.terminate';
/**
* The FINISH_REQUEST event occurs when a response was generated for a request.
@@ -99,5 +99,5 @@ final class KernelEvents
*
* @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent")
*/
const FINISH_REQUEST = 'kernel.finish_request';
public const FINISH_REQUEST = 'kernel.finish_request';
}