[Http] ROUTING BABY

Decoupled routing from HTTP
Added Router implement HttpServerInterface
Fully functional Symfony routes in application!
As a result, this drastically decreased backwards compatibility breaks while introducing new functionality
This commit is contained in:
Chris Boden 2013-04-26 23:01:28 -04:00
parent 48413cfbad
commit 8356130b97

View File

@ -73,9 +73,9 @@ class WsServer implements HttpServerInterface {
/**
* {@inheritdoc}
*/
public function onOpen(ConnectionInterface $conn, RequestInterface $headers = null) {
public function onOpen(ConnectionInterface $conn, RequestInterface $request = null) {
$conn->WebSocket = new \StdClass;
$conn->WebSocket->request = $headers;
$conn->WebSocket->request = $request;
$conn->WebSocket->established = false;
$this->attemptUpgrade($conn);