public function run(): void
    {
        $request = $request = ServerRequestFactory::fromGlobals();

        $response = $this->process($request);

        $emitter = $this->getContainer()->has(EmitterInterface::class)
            ? $this->getContainer()->get(EmitterInterface::class)
            : new SapiEmitter();

        $emitter->emit($response);
    }