<?php

namespace App\Listeners;

use App\Jobs\RefreshFilterIndexJob;
use Illuminate\Foundation\Bus\DispatchesJobs;

class TriggerFilterReindex
{
    use DispatchesJobs;

    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle($event)
    {
        $this->dispatch(new RefreshFilterIndexJob());
    }
}
