Asterisk must be quoted inside array()

This commit is contained in:
Bramus 2013-11-05 17:34:15 +01:00
parent d756e0b507
commit b48f0fa6fd
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class MyChat implements MessageComponentInterface {
// Run the server application through the WebSocket protocol on port 8080
$app = new Ratchet\App('localhost', 8080);
$app->route('/chat', new MyChat);
$app->route('/echo', new Ratchet\Server\EchoServer, array(*));
$app->route('/echo', new Ratchet\Server\EchoServer, array('*'));
$app->run();
```

View File

@ -88,7 +88,7 @@ class App {
* Add an endpiont/application to the server
* @param string $path The URI the client will connect to
* @param ComponentInterface $controller Your application to server for the route. If not specified, assumed to be for a WebSocket
* @param array $allowedOrigins An array of hosts allowed to connect (same host by default), [*] for any
* @param array $allowedOrigins An array of hosts allowed to connect (same host by default), ['*'] for any
* @param string $httpHost Override the $httpHost variable provided in the __construct
* @return ComponentInterface|WsServer
*/