mirror of
https://github.com/flarum/core.git
synced 2025-10-27 05:31:29 +01:00
Backend cleanup (#2859)
* Extender docblocks cleanup * Excplicit type hinting in extenders * Bring method under constructor * Mark some classes and methods as internal * Remove beta references Co-authored-by: Clark Winkelmann <clark.winkelmann@gmail.com>
This commit is contained in:
@@ -14,6 +14,9 @@ use Flarum\User\User;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class Gate
|
||||
{
|
||||
protected const EVALUATION_CRITERIA_PRIORITY = [
|
||||
|
||||
@@ -789,6 +789,8 @@ class User extends AbstractModel
|
||||
* Set the hasher with which to hash passwords.
|
||||
*
|
||||
* @param Hasher $hasher
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function setHasher(Hasher $hasher)
|
||||
{
|
||||
@@ -801,6 +803,8 @@ class User extends AbstractModel
|
||||
* @param string $key
|
||||
* @param callable $transformer
|
||||
* @param mixed $default
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function registerPreference($key, callable $transformer = null, $default = null)
|
||||
{
|
||||
@@ -812,6 +816,8 @@ class User extends AbstractModel
|
||||
*
|
||||
* @param callable $callback
|
||||
* @return array $groupIds
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function addGroupProcessor($callback)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user