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