mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Extract Flarum\Notification namespace
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Flarum\Core\Command;
|
||||
|
||||
use DateTime;
|
||||
use Flarum\User\AssertPermissionTrait;
|
||||
use Flarum\Core\Notification\NotificationSyncer;
|
||||
use Flarum\Notification\NotificationSyncer;
|
||||
use Flarum\Post\CommentPost;
|
||||
use Flarum\Discussion\DiscussionRepository;
|
||||
use Flarum\Foundation\DispatchEventsTrait;
|
||||
@@ -32,7 +32,7 @@ class PostReplyHandler
|
||||
protected $discussions;
|
||||
|
||||
/**
|
||||
* @var NotificationSyncer
|
||||
* @var \Flarum\Notification\NotificationSyncer
|
||||
*/
|
||||
protected $notifications;
|
||||
|
||||
@@ -44,7 +44,7 @@ class PostReplyHandler
|
||||
/**
|
||||
* @param Dispatcher $events
|
||||
* @param DiscussionRepository $discussions
|
||||
* @param NotificationSyncer $notifications
|
||||
* @param \Flarum\Notification\NotificationSyncer $notifications
|
||||
* @param PostValidator $validator
|
||||
*/
|
||||
public function __construct(
|
||||
|
@@ -12,7 +12,7 @@
|
||||
namespace Flarum\Core\Command;
|
||||
|
||||
use Flarum\User\AssertPermissionTrait;
|
||||
use Flarum\Core\Repository\NotificationRepository;
|
||||
use Flarum\Notification\NotificationRepository;
|
||||
|
||||
class ReadAllNotificationsHandler
|
||||
{
|
||||
|
@@ -12,7 +12,7 @@
|
||||
namespace Flarum\Core\Command;
|
||||
|
||||
use Flarum\User\AssertPermissionTrait;
|
||||
use Flarum\Core\Notification;
|
||||
use Flarum\Notification\Notification;
|
||||
|
||||
class ReadNotificationHandler
|
||||
{
|
||||
@@ -20,7 +20,7 @@ class ReadNotificationHandler
|
||||
|
||||
/**
|
||||
* @param ReadNotification $command
|
||||
* @return \Flarum\Core\Notification
|
||||
* @return \Flarum\Notification\Notification
|
||||
* @throws \Flarum\User\Exception\PermissionDeniedException
|
||||
*/
|
||||
public function handle(ReadNotification $command)
|
||||
|
Reference in New Issue
Block a user