app->bind(ConsoleOutputInterface::class, function() { return new ConsoleOutput(); }); /** @var LoopInterface $loop */ $this->loop = $this->app->make(LoopInterface::class); } protected function await(PromiseInterface $promise, LoopInterface $loop = null, $timeout = null) { return await($promise, $loop ?? $this->loop, $timeout ?? static::AWAIT_TIMEOUT); } }