mirror of
https://github.com/elyby/accounts.git
synced 2024-11-06 16:21:08 +05:30
23 lines
441 B
PHP
23 lines
441 B
PHP
<?php
|
|
namespace api\components\ReCaptcha;
|
|
|
|
use yii\base\InvalidConfigException;
|
|
|
|
class Component extends \yii\base\Component {
|
|
|
|
public $public;
|
|
|
|
public $secret;
|
|
|
|
public function init() {
|
|
if ($this->public === null) {
|
|
throw new InvalidConfigException('Public is required');
|
|
}
|
|
|
|
if ($this->secret === null) {
|
|
throw new InvalidConfigException('Secret is required');
|
|
}
|
|
}
|
|
|
|
}
|