mirror of
https://github.com/flarum/core.git
synced 2025-10-18 10:16:09 +02: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:
@@ -371,6 +371,8 @@ abstract class AbstractSerializeController implements RequestHandlerInterface
|
||||
|
||||
/**
|
||||
* @param Container $container
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function setContainer(Container $container)
|
||||
{
|
||||
@@ -380,6 +382,8 @@ abstract class AbstractSerializeController implements RequestHandlerInterface
|
||||
/**
|
||||
* @param string $controllerClass
|
||||
* @param callable $callback
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function addDataPreparationCallback(string $controllerClass, callable $callback)
|
||||
{
|
||||
@@ -393,6 +397,8 @@ abstract class AbstractSerializeController implements RequestHandlerInterface
|
||||
/**
|
||||
* @param string $controllerClass
|
||||
* @param callable $callback
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function addSerializationPreparationCallback(string $controllerClass, callable $callback)
|
||||
{
|
||||
@@ -403,6 +409,9 @@ abstract class AbstractSerializeController implements RequestHandlerInterface
|
||||
static::$beforeSerializationCallbacks[$controllerClass][] = $callback;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public static function setLoadRelations(string $controllerClass, array $relations)
|
||||
{
|
||||
if (! isset(static::$loadRelations[$controllerClass])) {
|
||||
|
Reference in New Issue
Block a user