PHP Класс Flarum\Core\Command\UploadAvatarHandler

Наследование: use trait Flarum\Core\Support\DispatchEventsTrait, use trait Flarum\Core\Access\AssertPermissionTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$app Flarum\Foundation\Application
$uploadDir League\Flysystem\FilesystemInterface
$users Flarum\Core\Repository\UserRepository
$validator Flarum\Core\Validator\AvatarValidator

Открытые методы

Метод Описание
__construct ( Illuminate\Contracts\Events\Dispatcher $events, Flarum\Core\Repository\UserRepository $users, League\Flysystem\FilesystemInterface $uploadDir, Application $app, AvatarValidator $validator )
handle ( UploadAvatar $command ) : User

Описание методов

__construct() публичный Метод

public __construct ( Illuminate\Contracts\Events\Dispatcher $events, Flarum\Core\Repository\UserRepository $users, League\Flysystem\FilesystemInterface $uploadDir, Application $app, AvatarValidator $validator )
$events Illuminate\Contracts\Events\Dispatcher
$users Flarum\Core\Repository\UserRepository
$uploadDir League\Flysystem\FilesystemInterface
$app Flarum\Foundation\Application
$validator Flarum\Core\Validator\AvatarValidator

handle() публичный Метод

public handle ( UploadAvatar $command ) : User
$command UploadAvatar
Результат Flarum\Core\User

Описание свойств

$app защищенное свойство

protected Application,Flarum\Foundation $app
Результат Flarum\Foundation\Application

$uploadDir защищенное свойство

protected FilesystemInterface,League\Flysystem $uploadDir
Результат League\Flysystem\FilesystemInterface

$users защищенное свойство

protected UserRepository,Flarum\Core\Repository $users
Результат Flarum\Core\Repository\UserRepository

$validator защищенное свойство

protected AvatarValidator,Flarum\Core\Validator $validator
Результат Flarum\Core\Validator\AvatarValidator