response->withStringBody('Hello Jane'); } /** * No autoRender * * @return void */ public function noRender() { $this->autoRender = false; $this->response = $this->response->withStringBody('autoRender false body'); } /** * invalid method * * @return string */ public function invalid(): string { return 'Some string'; } /** * Startup process * * \Psr\Http\Message\ResponseInterface|null */ public function startupProcess(): ?ResponseInterface { parent::startupProcess(); if ($this->request->getParam('stop') === 'startup') { return $this->response->withStringBody('startup stop'); } return null; } /** * Shutdown process * * \Psr\Http\Message\ResponseInterface|null */ public function shutdownProcess(): ?ResponseInterface { parent::shutdownProcess(); if ($this->request->getParam('stop') === 'shutdown') { return $this->response->withStringBody('shutdown stop'); } return null; } }