1
0
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:
Sami Mazouz
2021-05-13 15:26:24 +01:00
committed by GitHub
parent e3f506817b
commit 7bceda976b
59 changed files with 655 additions and 174 deletions

View File

@@ -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 = [

View File

@@ -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)
{