PHP Class Flarum\Core\Command\EditPostHandler

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

Protected Properties

Property Type Description
$posts Flarum\Core\Repository\PostRepository
$validator Flarum\Core\Validator\PostValidator

Public Methods

Method Description
__construct ( Illuminate\Contracts\Events\Dispatcher $events, PostRepository $posts, PostValidator $validator )
handle ( EditPost $command ) : Post

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Events\Dispatcher $events, PostRepository $posts, PostValidator $validator )
$events Illuminate\Contracts\Events\Dispatcher
$posts Flarum\Core\Repository\PostRepository
$validator Flarum\Core\Validator\PostValidator

handle() public method

public handle ( EditPost $command ) : Post
$command EditPost
return Flarum\Core\Post

Property Details

$posts protected property

protected PostRepository,Flarum\Core\Repository $posts
return Flarum\Core\Repository\PostRepository

$validator protected property

protected PostValidator,Flarum\Core\Validator $validator
return Flarum\Core\Validator\PostValidator