This commit is contained in:
Paolo A
2024-08-13 13:44:16 +00:00
parent 1bbb23088d
commit e796d76612
4001 changed files with 30101 additions and 40075 deletions

View File

@@ -66,7 +66,7 @@ class RequestDataCollector extends DataCollector implements EventSubscriberInter
$sessionMetadata = [];
$sessionAttributes = [];
$flashes = [];
if ($request->hasSession()) {
if (!$request->attributes->getBoolean('_stateless') && $request->hasSession()) {
$session = $request->getSession();
if ($session->isStarted()) {
$sessionMetadata['Created'] = date(\DATE_RFC822, $session->getMetadataBag()->getCreated());

View File

@@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Base class for events thrown in the HttpKernel component.
* Base class for events dispatched in the HttpKernel component.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/

View File

@@ -97,7 +97,7 @@ class ProfilerListener implements EventSubscriberInterface
return;
}
$session = $request->hasPreviousSession() && $request->hasSession() ? $request->getSession() : null;
$session = !$request->attributes->getBoolean('_stateless') && $request->hasPreviousSession() && $request->hasSession() ? $request->getSession() : null;
if ($session instanceof Session) {
$usageIndexValue = $usageIndexReference = &$session->getUsageIndex();

View File

@@ -78,11 +78,11 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
*/
private static $freshCache = [];
public const VERSION = '5.4.39';
public const VERSION_ID = 50439;
public const VERSION = '5.4.42';
public const VERSION_ID = 50442;
public const MAJOR_VERSION = 5;
public const MINOR_VERSION = 4;
public const RELEASE_VERSION = 39;
public const RELEASE_VERSION = 42;
public const EXTRA_VERSION = '';
public const END_OF_MAINTENANCE = '11/2024';