| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function __construct( |
||
| 29 | $handler, |
||
| 30 | $authenticatorClass, |
||
| 31 | $name, |
||
| 32 | $fields = null, |
||
| 33 | $actions = null, |
||
| 34 | $checkCurrentUser = true |
||
| 35 | ) { |
||
| 36 | if (!Environment::getEnv('YUBIAUTH_CLIENTID')) { |
||
| 37 | throw new LogicException('YUBIAUTH_CLIENTID Must be enabled to use YubiAuth'); |
||
| 38 | } |
||
| 39 | if (!Environment::getEnv('YUBIAUTH_APIKEY')) { |
||
| 40 | throw new LogicException('YUBIAUTH_APIKEY Must be enabled to use YubiAuth'); |
||
| 41 | } |
||
| 42 | |||
| 43 | parent::__construct($handler, $authenticatorClass, $name, $fields, $actions, $checkCurrentUser); |
||
| 44 | } |
||
| 56 |