Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
one class
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Dec 24, 2015
1 parent 67c7209 commit 9e23d81
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Console/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ class Server extends Command
*/
public function __construct()
{
$this->httpHost = Config::get('socket.httpHost');
$this->port = Config::get('socket.port');
$this->address = Config::get('socket.address');
$config = Config::get('socket');
$this->httpHost = $config['httpHost'];
$this->port = $config['port'];
$this->address = $config['address'];
parent::__construct();
}

Expand All @@ -73,7 +74,7 @@ public function fire()
{
$socket = new Socket($this->httpHost, $this->port, $this->address);
require_once(app_path() . '/Socket/routes.php');
$this->info('Laravel web socket server started on ' . $this->url . ':' . $this->port . '/' . 'address:' . $this->address);
$this->info('Laravel web socket server started on ' . $this->httpHost . ':' . $this->port . '/' . 'address:' . $this->address);
$socket->run();
}

Expand Down

0 comments on commit 9e23d81

Please sign in to comment.