PHP Class Flarum\Core\Command\DeleteAvatarHandler

Inheritance: use trait Flarum\Core\Support\DispatchEventsTrait, use trait Flarum\Core\Access\AssertPermissionTrait
Show file Open project: flarum/core

Protected Properties

Property Type Description
$uploadDir League\Flysystem\FilesystemInterface
$users Flarum\Core\Repository\UserRepository

Public Methods

Method Description
__construct ( Illuminate\Contracts\Events\Dispatcher $events, Flarum\Core\Repository\UserRepository $users, League\Flysystem\FilesystemInterface $uploadDir )
handle ( DeleteAvatar $command ) : User

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Events\Dispatcher $events, Flarum\Core\Repository\UserRepository $users, League\Flysystem\FilesystemInterface $uploadDir )
$events Illuminate\Contracts\Events\Dispatcher
$users Flarum\Core\Repository\UserRepository
$uploadDir League\Flysystem\FilesystemInterface

handle() public method

public handle ( DeleteAvatar $command ) : User
$command DeleteAvatar
return Flarum\Core\User

Property Details

$uploadDir protected property

protected FilesystemInterface,League\Flysystem $uploadDir
return League\Flysystem\FilesystemInterface

$users protected property

protected UserRepository,Flarum\Core\Repository $users
return Flarum\Core\Repository\UserRepository