Flarum\Formatter\FormatterServiceProvider::boot PHP Method

boot() public method

public boot ( Illuminate\Contracts\Events\Dispatcher $events )
$events Illuminate\Contracts\Events\Dispatcher
    public function boot(Dispatcher $events)
    {
        $events->listen(ExtensionWasEnabled::class, [$this, 'flushFormatter']);
        $events->listen(ExtensionWasDisabled::class, [$this, 'flushFormatter']);
    }
FormatterServiceProvider