diff options
Diffstat (limited to 'src/Captcha.php')
| -rw-r--r-- | src/Captcha.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Captcha.php b/src/Captcha.php index c60a186..f60031a 100644 --- a/src/Captcha.php +++ b/src/Captcha.php | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // src/Captcha.php | 2 | // src/Captcha.php |
| 3 | // | ||
| 4 | // la solution est stockée dans une unique variable $_SESSION['captcha'] | ||
| 5 | // => on pourrait appliquer le pattern "singleton" (justification = le captcha devient une sorte de ressource partagée) | ||
| 3 | 6 | ||
| 4 | declare(strict_types=1); | 7 | declare(strict_types=1); |
| 5 | 8 | ||
