mirror of
https://github.com/flarum/core.git
synced 2025-10-17 01:36:09 +02:00
Refactor Flarum\Web and Flarum\Admin
- In order to be consistent with the Ember/LESS naming scheme, renamed Flarum\Web to Flarum\Forum. - Moved common classes into Flarum\Support so that Flarum\Admin doesn’t depend on Flarum\Forum. Also moved Actor into Flarum\Support as it doesn’t belong in the domain.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
use Tobscure\JsonApi\SerializerAbstract;
|
||||
use Flarum\Api\Events\SerializeAttributes;
|
||||
use Flarum\Api\Events\SerializeRelationship;
|
||||
use Flarum\Core\Support\Actor;
|
||||
use Flarum\Support\Actor;
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
@@ -14,14 +14,14 @@ abstract class BaseSerializer extends SerializerAbstract
|
||||
/**
|
||||
* The actor who is requesting the serialized objects.
|
||||
*
|
||||
* @var \Flarum\Core\Support\Actor
|
||||
* @var \Flarum\Support\Actor
|
||||
*/
|
||||
protected static $actor;
|
||||
|
||||
/**
|
||||
* Set the actor who is requesting the serialized objects.
|
||||
*
|
||||
* @param \Flarum\Core\Support\Actor $actor
|
||||
* @param \Flarum\Support\Actor $actor
|
||||
* @return void
|
||||
*/
|
||||
public static function setActor(Actor $actor)
|
||||
|
Reference in New Issue
Block a user