public function subscribe($id, string $channel, $args, Request $request, \DateTime $expireAt = null): void
    {
        $this->convertNodes($args);
        $this->pubSubHandler->sub(
            $channel,
            $id,
            [
                'channel' => $channel,
                'arguments' => $args,
                'request' => $request,
            ],
            $expireAt
        );
    }
public function subscribe($id, string $channel, $args, Request $request, \DateTime $expireAt = null): void
    {
        $this->convertNodes($args);
        $this->pubSubHandler->sub(
            $channel,
            $id,
            [
                'channel' => $channel,
                'arguments' => $args,
                'request' => $request,
            ],
            $expireAt
        );
    }
public function subscribe ( $ id , string $ channel , $ args , Request $ request , \ DateTime $ expireAt = null ) : void { $ this -> convertNodes ( $ args ) ; $ this -> pubSubHandler -> sub ( $ channel , $ id , [ 'channel' => $ channel , 'arguments' => $ args , 'request' => $ request , ] , $ expireAt ) ; }
Subscribe given request to given subscription,
when this subscription is dispatched this request will be executed

@param string         $id
@param string         $channel
@param array          $args
@param Request        $request
@param \DateTime|null $expireAt
Subscribe given request to given subscription when this subscription is dispatched this request will be executed