1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 08:24:28 +02:00

Move more event classes to appropriate namespaces

This commit is contained in:
Franz Liedke
2017-06-25 17:04:33 +02:00
parent 78f3681fc1
commit f824dcfb53
8 changed files with 16 additions and 16 deletions

View File

@@ -11,7 +11,7 @@
namespace Flarum\User\Command;
use Flarum\Event\AvatarWillBeDeleted;
use Flarum\User\Event\AvatarDeleting;
use Flarum\Foundation\DispatchEventsTrait;
use Flarum\User\AssertPermissionTrait;
use Flarum\User\UserRepository;
@@ -64,7 +64,7 @@ class DeleteAvatarHandler
$user->changeAvatarPath(null);
$this->events->fire(
new AvatarWillBeDeleted($user, $actor)
new AvatarDeleting($user, $actor)
);
$user->save();