update patch 1
This commit is contained in:
@@ -29,18 +29,16 @@ class MetadataBag implements SessionBagInterface
|
||||
protected array $meta = [self::CREATED => 0, self::UPDATED => 0, self::LIFETIME => 0];
|
||||
|
||||
private string $name = '__metadata';
|
||||
private string $storageKey;
|
||||
private int $lastUsed;
|
||||
private int $updateThreshold;
|
||||
|
||||
/**
|
||||
* @param string $storageKey The key used to store bag in the session
|
||||
* @param int $updateThreshold The time to wait between two UPDATED updates
|
||||
*/
|
||||
public function __construct(string $storageKey = '_sf2_meta', int $updateThreshold = 0)
|
||||
{
|
||||
$this->storageKey = $storageKey;
|
||||
$this->updateThreshold = $updateThreshold;
|
||||
public function __construct(
|
||||
private string $storageKey = '_sf2_meta',
|
||||
private int $updateThreshold = 0,
|
||||
) {
|
||||
}
|
||||
|
||||
public function initialize(array &$array): void
|
||||
|
||||
Reference in New Issue
Block a user