setDescription("Runs the websocket server"); } public function doExecute(InputInterface $input, OutputInterface $output) { $sessionConf = $this->container['conf']->get(['main', 'session', 'type'], 'file'); if (!in_array($sessionConf, ['memcached', 'memcache', 'redis'])) { throw new RuntimeException(sprintf('Running the websocket server requires a server session storage, type `%s` provided', $sessionConf)); } $this->container['ws.server']->run(); } }