1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +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\NotificationSerializer;
use Flarum\Discussion\Discussion;
use Flarum\Http\UrlGenerator;
use Flarum\Notification\NotificationRepository;
@@ -23,7 +24,7 @@ class ListNotificationsController extends AbstractListController
/**
* {@inheritdoc}
*/
public $serializer = 'Flarum\Api\Serializer\NotificationSerializer';
public $serializer = NotificationSerializer::class;
/**
* {@inheritdoc}