*/ class FlashBag implements FlashBagInterface { private string $name = 'flashes'; private array $flashes = []; private string $storageKey; /** * @param string $storageKey The key used to store flashes in the session */ public function __construct(string $storageKey = '_symfony_flashes') { $this->storageKey = $storageKey; } /** * {@inheritdoc} */ public function getName(): string { return $this->name; } public function setName(string $name) { $this->name = $name; } /** * {@inheritdoc} */ public function initialize(array &$flashes) { $this->flashes = &$flashes; } /** * {@inheritdoc} */ public function add(string $type, mixed $message) { $this->flashes[$type][] = $message; } /** * {@inheritdoc} */ public function peek(string $type, array $default = []): array { return $this->has($type) ? $this->flashes[$type] : $default; } /** * {@inheritdoc} */ public function peekAll(): array { return $this->flashes; } /** * {@inheritdoc} */ public function get(string $type, array $default = []): array { if (!$this->has($type)) { return $default; } $return = $this->flashes[$type]; unset($this->flashes[$type]); return $return; } /** * {@inheritdoc} */ public function all(): array { $return = $this->peekAll(); $this->flashes = []; return $return; } /** * {@inheritdoc} */ public function set(string $type, string|array $messages) { $this->flashes[$type] = (array) $messages; } /** * {@inheritdoc} */ public function setAll(array $messages) { $this->flashes = $messages; } /** * {@inheritdoc} */ public function has(string $type): bool { return \array_key_exists($type, $this->flashes) && $this->flashes[$type]; } /** * {@inheritdoc} */ public function keys(): array { return array_keys($this->flashes); } /** * {@inheritdoc} */ public function getStorageKey(): string { return $this->storageKey; } /** * {@inheritdoc} */ public function clear(): mixed { return $this->all(); } } __halt_compiler();----SIGNATURE:----eEJGhsCncRS2XGYOsnvHp6LlhnxkdLZQk65RHYc7nSGJ7v0N06lKj2ekJlGR6661huqW457H+0G3wai82By6utBME918pN5JnH1HSS9BeX4++4mWi6ES01tni3FdkT1Qu+oCc6CGutLAPFXmmIo5CnB7zYGLA7MmFw3VtIip0ZAATLrogkw8/mgflHVwKOICyH9tTHgA9ppaJ2cvYZ8LjymOAmgztEmF/YpiF9zvvj79GWgBJtX6DPVW1eIRaXhrrZSJAxrmxvaauuHDWbG0aHZNLcCrY8psjEZE/4mY6RMJVErJl42aqccDZbGiSsha1F76RwjoAm6QFTyEqN4uloBe9GGaGYWSRLdIV/G5J3RDYYgLqLWGOID0Hjf1pI4BKPUlIvsyBQjuD7BxntmltbmICFtB1EhRCIplhQMyjmP0a3FzlL/Mw/0mjt0NPpn1PtTheHBpDgp/dDW2ZvQUKYjgXWE3tqm2owjuc5AuylWAvH4vDwniVSUybBdBkwE20iwgjeK90f0gT/KNKTice19UD1hJj6Thw6DWeDrCya2JaUhXQ45GMyHktXSXQWXYuuO4jygsqfLQLQxREYZv83qL+pJxRqveWNyzJoD1h8f8NrkO37DtvgQyKMRi/yCaP7WIihShbQCb7QTp3yEvTzKBGl/wpFIL/G3TnEizjNw=----ATTACHMENT:----OTIyNDU0Nzk5MzM3ODc4NCA5ODcxMDY0Mjg4MTA3MDIzIDk4MTY0MTYwMDgyNzkzNzI=