src/bot/modules/ToChannelWebhook.php
/**
     * Send data from received HTTP POST request to slack
     *
     * @param array $payload Data array
     * @param       $context
     */
Send data from received HTTP POST request to slack
@param array $payload Data array
@param       $context
Send data from received HTTP POST request to slack @param array $payload Data array @param $context
public function execute($payload, $context)
    {
        $payload['channel'] = $this->getChannelIdFromChannelName($payload['channel']);
        $this->getClient()->send(json_encode($payload));
    }
public function execute ( $ payload , $ context ) { $ payload [ 'channel' ] = $ this -> getChannelIdFromChannelName ( $ payload [ 'channel' ] ) ; $ this -> getClient ( ) -> send ( json_encode ( $ payload ) ) ; }
Send data from received HTTP POST request to slack
 @param array $payload Data array
 @param       $context
Send data from received HTTP POST request to slack @param array $payload Data array @param $context