Remove deprecated TagWillBeSaved event

This commit is contained in:
Alexander Skvortsov 2020-12-08 00:02:46 -05:00
parent 423d156d50
commit 2fd76a8d75
2 changed files with 0 additions and 50 deletions

View File

@ -10,7 +10,6 @@
namespace Flarum\Tags\Command;
use Flarum\Tags\Event\Saving;
use Flarum\Tags\Event\TagWillBeSaved;
use Flarum\Tags\TagRepository;
use Flarum\Tags\TagValidator;
use Illuminate\Support\Arr;
@ -83,9 +82,6 @@ class EditTagHandler
event(new Saving($tag, $actor, $data));
// Deprecated BC layer, remove in beta 15.
event(new TagWillBeSaved($tag, $actor, $data));
$this->validator->assertValid($tag->getDirty());
$tag->save();

View File

@ -1,46 +0,0 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Tags\Event;
use Flarum\Tags\Tag;
use Flarum\User\User;
/**
* @deprecated beta 14, removed beta 15.
*/
class TagWillBeSaved
{
/**
* @var Tag
*/
public $tag;
/**
* @var User
*/
public $actor;
/**
* @var array
*/
public $data;
/**
* @param Tag $tag
* @param User $actor
* @param array $data
*/
public function __construct(Tag $tag, User $actor, array $data)
{
$this->tag = $tag;
$this->actor = $actor;
$this->data = $data;
}
}