← All changes
|
backend/src/Factory/Security/CaptchaProviderResolver.php
+1
-8
0.3.1
→
1.5
View file →
| @@ -1,18 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * @copyright © TMS-Plugins. All rights reserved. | |
| 4 | + * @copyright © Melograno Venture Studio. All rights reserved. | |
| 5 | 5 | * @licence See COPYING.md for license details. |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace IvyForms\Factory\Security; |
| 9 | 9 | |
| 10 | -// phpcs:disable PSR1.Files.SideEffects | |
| 11 | -if (!defined('ABSPATH')) { | |
| 12 | - exit; // Exit if accessed directly | |
| 13 | -} | |
| 14 | - | |
| 15 | 10 | use IvyForms\Services\Settings\SettingsService; |
| 16 | 11 | |
| 17 | 12 | /** |
| 18 | 13 | * Resolver for determining which CAPTCHA provider to use |
| @@ -28,10 +23,8 @@ | ||
| 28 | 23 | public const PROVIDER_RECAPTCHA = 'recaptcha'; |
| 29 | 24 | public const PROVIDER_HCAPTCHA = 'hcaptcha'; |
| 30 | 25 | public const PROVIDER_TURNSTILE = 'turnstile'; |
| 31 | 26 | public const PROVIDER_NONE = 'none'; |
| 32 | - | |
| 33 | - | |
| 34 | 27 | private SettingsService $settingsService; |
| 35 | 28 | |
| 36 | 29 | /** @var array<string, array<string>> */ |
| 37 | 30 | private array $requiredKeys; |