mirror of
https://github.com/elyby/accounts.git
synced 2024-12-31 01:20:40 +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('');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|