Made changes as suggested in pull request. Getters have been removed from IoServer and desired properties have been made public.
This commit is contained in:
parent
478bdc10c5
commit
77c6d53a4d
@ -96,7 +96,7 @@ class App {
|
||||
* @return FlashPolicy
|
||||
*/
|
||||
public function getFlashPolicy() {
|
||||
return $this->flashServer->getApp();
|
||||
return $this->flashServer->app;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -105,7 +105,7 @@ class App {
|
||||
* @return \React\Socket\ServerInterface
|
||||
*/
|
||||
public function getFlashSocket() {
|
||||
return $this->flashServer->getSocket();
|
||||
return $this->flashServer->socket;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ class IoServer {
|
||||
* The socket server the Ratchet Application is run off of
|
||||
* @var \React\Socket\ServerInterface
|
||||
*/
|
||||
protected $socket;
|
||||
public $socket;
|
||||
|
||||
/**
|
||||
* @param \Ratchet\MessageComponentInterface $app The Ratchet application stack to host
|
||||
@ -60,24 +60,6 @@ class IoServer {
|
||||
$this->handlers[2] = array($this, 'handleError');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Ratchet App
|
||||
*
|
||||
* @return \Ratchet\MessageComponentInterface
|
||||
*/
|
||||
public function getApp() {
|
||||
return $this->app;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Socket
|
||||
*
|
||||
* @return \React\Socket\ServerInterface
|
||||
*/
|
||||
public function getSocket() {
|
||||
return $this->socket;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Ratchet\MessageComponentInterface $component The application that I/O will call when events are received
|
||||
* @param int $port The port to server sockets on
|
||||
|
Loading…
Reference in New Issue
Block a user