mirror of
https://github.com/elyby/accounts.git
synced 2024-12-12 08:29:01 +05:30
17 lines
285 B
PHP
17 lines
285 B
PHP
|
<?php
|
||
|
namespace api\components\ReCaptcha;
|
||
|
|
||
|
use yii\base\InvalidConfigException;
|
||
|
|
||
|
class Component extends \yii\base\Component {
|
||
|
|
||
|
public $secret;
|
||
|
|
||
|
public function init() {
|
||
|
if ($this->secret === NULL) {
|
||
|
throw new InvalidConfigException('');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|