public function onWSClientCommand(WSEventDispatcher\WSClientEvent $event)
    {
        //$command = $event->getCommand();
        //$arguments = $event->getArguments();
        $this->data['commands'][] = array(
            'command'   => $event->getCommand(),
            'arguments' => $event->getArguments(),
            'url' => $event->getUrl(),
            'cache' => $event->getUseCache(),
            'content' => $event->getContent(),
            'key' => $event->getKey(),
            'statusCode' => $event->getStatusCode(),
            'executiontime' => $event->getTiming()
        );
    }
public function onWSClientCommand(WSEventDispatcher\WSClientEvent $event)
    {
        //$command = $event->getCommand();
        //$arguments = $event->getArguments();
        $this->data['commands'][] = array(
            'command'   => $event->getCommand(),
            'arguments' => $event->getArguments(),
            'url' => $event->getUrl(),
            'cache' => $event->getUseCache(),
            'content' => $event->getContent(),
            'key' => $event->getKey(),
            'statusCode' => $event->getStatusCode(),
            'executiontime' => $event->getTiming()
        );
    }
public function onWSClientCommand ( WSEventDispatcher \ WSClientEvent $ event ) { //$command = $event->getCommand(); //$arguments = $event->getArguments(); $ this -> data [ 'commands' ] [ ] = array ( 'command' => $ event -> getCommand ( ) , 'arguments' => $ event -> getArguments ( ) , 'url' => $ event -> getUrl ( ) , 'cache' => $ event -> getUseCache ( ) , 'content' => $ event -> getContent ( ) , 'key' => $ event -> getKey ( ) , 'statusCode' => $ event -> getStatusCode ( ) , 'executiontime' => $ event -> getTiming ( ) ) ; }
Listen for wsclient command event
@param \M6Web\Bundle\WSClientBundle\EventDispatcher\WSClientEvent|object $event The event object
Listen for wsclient command event