PHP Interface 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.
Author: Basil Suter ([email protected])
Datei anzeigen Open project: luyadev/luya

Public Methods

Method Description
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.

Method Details

userAuthClass() public method

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
return boolean | string | object user object, class name, false to disabled the authentication.