1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +02:00

Use ::class instead of some hardcoded class names

This gives us better refactoring functionality in IDEs like
PhpStorm, and also more quickly surfaces typos through errors
about undefined classes. :)
This commit is contained in:
Franz Liedke
2018-01-02 19:36:48 +01:00
parent 3f7e7520b0
commit 936f67e953
20 changed files with 40 additions and 20 deletions

View File

@@ -11,6 +11,7 @@
namespace Flarum\Api\Controller;
use Flarum\Api\Serializer\PostSerializer;
use Flarum\Event\ConfigurePostsQuery;
use Flarum\Post\PostRepository;
use Illuminate\Database\Eloquent\Builder;
@@ -23,7 +24,7 @@ class ListPostsController extends AbstractListController
/**
* {@inheritdoc}
*/
public $serializer = 'Flarum\Api\Serializer\PostSerializer';
public $serializer = PostSerializer::class;
/**
* {@inheritdoc}