1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Extract new Flarum\Post namespace

This commit is contained in:
Franz Liedke
2017-06-24 13:43:33 +02:00
parent 3481798875
commit 66abd7ecfd
38 changed files with 146 additions and 154 deletions

View File

@@ -14,11 +14,11 @@ namespace Flarum\Core\Command;
use DateTime;
use Flarum\Core\Access\AssertPermissionTrait;
use Flarum\Core\Notification\NotificationSyncer;
use Flarum\Core\Post\CommentPost;
use Flarum\Post\CommentPost;
use Flarum\Core\Repository\DiscussionRepository;
use Flarum\Foundation\DispatchEventsTrait;
use Flarum\Core\Validator\PostValidator;
use Flarum\Event\PostWillBeSaved;
use Flarum\Post\PostValidator;
use Flarum\Post\Event\Saving;
use Illuminate\Contracts\Events\Dispatcher;
class PostReplyHandler
@@ -37,7 +37,7 @@ class PostReplyHandler
protected $notifications;
/**
* @var PostValidator
* @var \Flarum\Post\PostValidator
*/
protected $validator;
@@ -96,7 +96,7 @@ class PostReplyHandler
}
$this->events->fire(
new PostWillBeSaved($post, $actor, $command->data)
new Saving($post, $actor, $command->data)
);
$this->validator->assertValid($post->getAttributes());