-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.php
42 lines (31 loc) · 854 Bytes
/
controller.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace Concrete\Package\HwRecaptchaV3;
use Concrete\Core\Logging\Logger;
use Concrete\Core\Package\Package;
use Concrete\Core\Captcha\Library as CaptchaLibrary;
class Controller extends Package
{
protected $pkgHandle = 'hw_recaptcha_v3';
protected $appVersionRequired = '8.3.0';
protected $pkgVersion = '0.9.5';
protected $logger;
protected $pkgAutoloaderMapCoreExtensions = true;
public function getPackageName()
{
return t('HW Recaptcha V3');
}
public function getPackageDescription()
{
return t('Google reCAPTCHA Version 3.');
}
public function install()
{
$pkg = parent::install();
CaptchaLibrary::add('hwRecaptchaV3', t('reCAPTCHAv3'), $pkg);
return $pkg;
}
public function uninstall()
{
parent::uninstall();
}
}