PHP Class Flarum\Core\Command\DeletePostHandler

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

Protected Properties

Property Type Description
$posts Flarum\Core\Repository\PostRepository

Public Methods

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

Method Details

__construct() public method

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

handle() public method

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

Property Details

$posts protected_oe property

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