Method | Description | |
---|---|---|
__construct ( callback $callback, array $args = [] ) | ||
allow ( string $callable_name, $permission_required = '' ) : ServerRequest | Allow certain callback. | |
checkPermission ( ) : boolean | Check permission. | |
checkToken ( ) : boolean | Check token. | |
execute ( ) : mixed | Execute callback. |
public __construct ( callback $callback, array $args = [] ) | ||
$callback | callback | |
$args | array |
public checkPermission ( ) : boolean | ||
return | boolean |