App\Listeners\Forum\NotifySlack::notify PHP Метод

notify() публичный Метод

public notify ( $event, $options )
    public function notify($event, $options)
    {
        $this->post = $event->post;
        $this->topic = $event->topic;
        $this->user = $event->user;
        $this->prefix = $options['prefix'];
        $this->message = html_entity_decode($options['message'], ENT_QUOTES | ENT_XML1, 'UTF-8');
        return Slack::to('dev')->attach(['color' => $this->notifyColour(), 'fallback' => $this->message, 'text' => $this->post->post_text])->send($this->mainMessage());
    }