PHP Trait Flarum\Core\Support\DispatchEventsTrait

ファイルを表示 Open project: flarum/core

Protected Properties

Property Type Description
$events Illuminate\Contracts\Events\Dispatcher

Public Methods

Method Description
dispatchEventsFor ( object $entity, User $actor = null ) Dispatch all events for an entity.

Method Details

dispatchEventsFor() public method

Dispatch all events for an entity.
public dispatchEventsFor ( object $entity, User $actor = null )
$entity object
$actor Flarum\Core\User

Property Details

$events protected_oe property

protected Dispatcher,Illuminate\Contracts\Events $events
return Illuminate\Contracts\Events\Dispatcher