From 989235132e17bfe61ab27c7e8f98f6cb8bfd42f2 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sat, 7 Jun 2014 11:06:57 -0400 Subject: [PATCH] [App] Reverted API API changes - back to v0.3.1 version --- src/Ratchet/App.php | 25 ++----------------------- src/Ratchet/Server/IoServer.php | 4 +--- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index cc724fc..c6d9ceb 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -1,7 +1,5 @@ routes = new RouteCollection; $this->_server = new IoServer(new HttpServer(new Router(new UrlMatcher($this->routes, new RequestContext))), $socket, $loop); - $policy = new FlashPolicy(); + $policy = new FlashPolicy; $policy->addAllowedAccess($httpHost, 80); $policy->addAllowedAccess($httpHost, $port); $flashSock = new Reactor($loop); @@ -89,24 +87,6 @@ class App { $flashSock->listen(8843); } } - - /** - * Returns the FlashPolicy running in the flash server. Modifications of this object take effect immediately! - * - * @return FlashPolicy - */ - public function getFlashPolicy() { - return $this->flashServer->app; - } - - /** - * Returns the FlashSocket of the flash server. - * - * @return \React\Socket\ServerInterface - */ - public function getFlashSocket() { - return $this->flashServer->socket; - } /** * Add an endpiont/application to the server @@ -150,5 +130,4 @@ class App { public function run() { $this->_server->run(); } -} - +} \ No newline at end of file diff --git a/src/Ratchet/Server/IoServer.php b/src/Ratchet/Server/IoServer.php index 160a1fc..921c7b1 100644 --- a/src/Ratchet/Server/IoServer.php +++ b/src/Ratchet/Server/IoServer.php @@ -1,7 +1,5 @@