src/Leevel/Kernel/Console/RoadRunnerServer.php
public function handle(IApp $app): void
    {
        ini_set('display_errors', 'stderr');

        $kernel = $app->make(IKernel::class);
        list($psr7, $psr2Leevel, $leevel2Psr) = $this->getPsrBridge();

        while ($req = $psr7->acceptRequest()) {
            try {
                $request = $psr2Leevel->createRequest($req);
                $response = $kernel->handle($request);
                $psr7->respond($leevel2Psr->createResponse($response));
                $kernel->terminate($request, $response);
            } catch (Throwable $e) {
                $psr7->getWorker()->error((string) $e);
            }
        }
    }
public function handle(IApp $app): void
    {
        ini_set('display_errors', 'stderr');

        $kernel = $app->make(IKernel::class);
        list($psr7, $psr2Leevel, $leevel2Psr) = $this->getPsrBridge();

        while ($req = $psr7->acceptRequest()) {
            try {
                $request = $psr2Leevel->createRequest($req);
                $response = $kernel->handle($request);
                $psr7->respond($leevel2Psr->createResponse($response));
                $kernel->terminate($request, $response);
            } catch (Throwable $e) {
                $psr7->getWorker()->error((string) $e);
            }
        }
    }
响应命令.

@param \Leevel\Kernel\IApp $app