PHP Class Flarum\Core\Command\StartDiscussionHandler

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

Protected Properties

Property Type Description
$bus Illuminate\Contracts\Bus\Dispatcher
$validator Flarum\Core\Validator\DiscussionValidator

Public Methods

Method Description
__construct ( Illuminate\Contracts\Events\Dispatcher $events, Illuminate\Contracts\Bus\Dispatcher $bus, DiscussionValidator $validator )
handle ( StartDiscussion $command ) : mixed

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Events\Dispatcher $events, Illuminate\Contracts\Bus\Dispatcher $bus, DiscussionValidator $validator )
$events Illuminate\Contracts\Events\Dispatcher
$bus Illuminate\Contracts\Bus\Dispatcher
$validator Flarum\Core\Validator\DiscussionValidator

handle() public method

public handle ( StartDiscussion $command ) : mixed
$command StartDiscussion
return mixed

Property Details

$bus protected property

protected Dispatcher,Illuminate\Contracts\Bus $bus
return Illuminate\Contracts\Bus\Dispatcher

$validator protected property

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