mirror of
https://github.com/flarum/framework.git
synced 2025-02-13 01:35:32 +08:00
Remove deprecated TagWillBeSaved event
This commit is contained in:
parent
423d156d50
commit
2fd76a8d75
|
@ -10,7 +10,6 @@
|
||||||
namespace Flarum\Tags\Command;
|
namespace Flarum\Tags\Command;
|
||||||
|
|
||||||
use Flarum\Tags\Event\Saving;
|
use Flarum\Tags\Event\Saving;
|
||||||
use Flarum\Tags\Event\TagWillBeSaved;
|
|
||||||
use Flarum\Tags\TagRepository;
|
use Flarum\Tags\TagRepository;
|
||||||
use Flarum\Tags\TagValidator;
|
use Flarum\Tags\TagValidator;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
|
@ -83,9 +82,6 @@ class EditTagHandler
|
||||||
|
|
||||||
event(new Saving($tag, $actor, $data));
|
event(new Saving($tag, $actor, $data));
|
||||||
|
|
||||||
// Deprecated BC layer, remove in beta 15.
|
|
||||||
event(new TagWillBeSaved($tag, $actor, $data));
|
|
||||||
|
|
||||||
$this->validator->assertValid($tag->getDirty());
|
$this->validator->assertValid($tag->getDirty());
|
||||||
|
|
||||||
$tag->save();
|
$tag->save();
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user