Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherApp::__construct PHP Method

__construct() public method

public __construct ( $appName, Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface $messageDispatcher, Doctrine\Common\Cache\Cache $contextsCache )
$messageDispatcher Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface
$contextsCache Doctrine\Common\Cache\Cache
    public function __construct($appName, MessageDispatcherInterface $messageDispatcher, Cache $contextsCache)
    {
        parent::__construct($contextsCache);
        $this->name = $appName;
        $this->messageDispatcher = $messageDispatcher;
    }

Usage Example

 public function __construct($appName, MessageDispatcherInterface $messageDispatcher, $firewallName, Cache $contextsCache)
 {
     parent::__construct($appName, $messageDispatcher, $contextsCache);
     $this->firewallName = $firewallName;
 }