PHP 인터페이스 luya\rest\UserBehaviorInterface

This interfaces defines the implementation class of the user components which is going to be used if the rest class has the luya\traits\RestBehaviorsTrait implemented.
저자: Basil Suter ([email protected])
파일 보기 프로젝트 열기: luyadev/luya

공개 메소드들

메소드 설명
userAuthClass ( ) : boolean | string | object Returns the class object for the authentication of the rest api. If the return value is false the authentication is disabled for the whole rest controller.

메소드 상세

userAuthClass() 공개 메소드

return a user object: php return Yii::$app->adminuser; return a class string will create a new object from this class string: php return \admin\components\User::className(); return false will disabled the authentication proccess for this rest controller php return false;
public userAuthClass ( ) : boolean | string | object
리턴 boolean | string | object user object, class name, false to disabled the authentication.