mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 07:30:18 +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('');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|