projet par cursor

This commit is contained in:
LAINEY Grégory committed 2026-09-29 10:45:14 +02:00
1 parent 236f75ecdd
commit b785db1b84
47 files changed
+3902

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
final class Flash
{
private const CLE = "_flash";
public static function definir(string $type, string $message): void
{
$_SESSION[self::CLE] = [
"type" => $type,
"message" => $message
];
}
public static function consommer(): ?array
{
if (empty($_SESSION[self::CLE]))
{
return null;
}
$flash = $_SESSION[self::CLE];
unset($_SESSION[self::CLE]);
return $flash;
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.