mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 07:09:46 +05:30
24 lines
407 B
PHP
24 lines
407 B
PHP
<?php
|
|
namespace api\components\ApiUser;
|
|
|
|
use yii\web\User as YiiUserComponent;
|
|
|
|
/**
|
|
* @property Identity|null $identity
|
|
*
|
|
* @method Identity|null getIdentity()
|
|
*/
|
|
class Component extends YiiUserComponent {
|
|
|
|
public $identityClass = Identity::class;
|
|
|
|
public $enableSession = false;
|
|
|
|
public $loginUrl = null;
|
|
|
|
public function getAccessChecker() {
|
|
return new AuthChecker();
|
|
}
|
|
|
|
}
|