@@ -6,8 +6,8 @@ |
||
6 | 6 | use GuzzleHttp\Psr7\Response; |
7 | 7 | use Ratchet\ConnectionInterface; |
8 | 8 | use function GuzzleHttp\Psr7\str; |
9 | -use Psr\Http\Message\RequestInterface; |
|
10 | 9 | use BeyondCode\DuskDashboard\Ratchet\Socket; |
10 | +use Psr\Http\Message\RequestInterface; |
|
11 | 11 | |
12 | 12 | class EventController extends Controller |
13 | 13 | { |
@@ -119,6 +119,9 @@ |
||
119 | 119 | $this->app->run(); |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param string $url |
|
124 | + */ |
|
122 | 125 | protected function tryToOpenInBrowser($url) |
123 | 126 | { |
124 | 127 | if (PHP_OS === 'Darwin') { |
@@ -2,19 +2,19 @@ |
||
2 | 2 | |
3 | 3 | namespace BeyondCode\DuskDashboard\Console; |
4 | 4 | |
5 | +use BeyondCode\DuskDashboard\DuskProcessFactory; |
|
6 | +use BeyondCode\DuskDashboard\Ratchet\Http\DashboardController; |
|
7 | +use BeyondCode\DuskDashboard\Ratchet\Http\EventController; |
|
8 | +use BeyondCode\DuskDashboard\Ratchet\Server\App; |
|
9 | +use BeyondCode\DuskDashboard\Ratchet\Socket; |
|
10 | +use BeyondCode\DuskDashboard\Watcher; |
|
5 | 11 | use Clue\React\Buzz\Browser; |
6 | 12 | use Illuminate\Console\Command; |
7 | 13 | use Ratchet\WebSocket\WsServer; |
14 | +use React\EventLoop\Factory as LoopFactory; |
|
8 | 15 | use React\EventLoop\LoopInterface; |
9 | 16 | use Symfony\Component\Finder\Finder; |
10 | 17 | use Symfony\Component\Routing\Route; |
11 | -use BeyondCode\DuskDashboard\Watcher; |
|
12 | -use React\EventLoop\Factory as LoopFactory; |
|
13 | -use BeyondCode\DuskDashboard\Ratchet\Socket; |
|
14 | -use BeyondCode\DuskDashboard\DuskProcessFactory; |
|
15 | -use BeyondCode\DuskDashboard\Ratchet\Server\App; |
|
16 | -use BeyondCode\DuskDashboard\Ratchet\Http\EventController; |
|
17 | -use BeyondCode\DuskDashboard\Ratchet\Http\DashboardController; |
|
18 | 18 | |
19 | 19 | class StartDashboardCommand extends Command |
20 | 20 | { |