Slick.php
/**
     * Processes the incoming request from Slack and returns the ack content to respond with.
     *
     * @return string
     * @throws Exception if anything goes wrong.
     */
Processes the incoming request from Slack and returns the ack content to respond with.
@return string
@throws Exception if anything goes wrong.
Processes the incoming request from Slack and returns the ack content to respond with . @return string @throws Exception if anything goes wrong .
public function processRequest(): string
    {
        $this->validateRequest();
        $payload = self::parseRequestBody($this->body);
        $type = self::getPayloadType($payload);
        $id = self::getPayloadId($payload);
        $route = $this->routes[$type][$id] ?? $this->catchAllListener;
        $result = $route($payload);
        return $this->prepareAck($result);
    }
public function processRequest ( ) : string { $ this -> validateRequest ( ) ; $ payload = self :: parseRequestBody ( $ this -> body ) ; $ type = self :: getPayloadType ( $ payload ) ; $ id = self :: getPayloadId ( $ payload ) ; $ route = $ this -> routes [ $ type ] [ $ id ] ?? $ this -> catchAllListener ; $ result = $ route ( $ payload ) ; return $ this -> prepareAck ( $ result ) ; }
Processes the incoming request from Slack and returns the ack content to respond with.
Processes the incoming request from Slack and returns the ack content to respond with .