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