/** * Api handler. * * @return \Psr\Http\Message\ResponseInterface|\Zend\Diactoros\Response */ public function handle(SetHandler $handler) { $response = $handler->toResponse(); return $response->generateHttpResponse(); }
/** * @param \Notadd\Foundation\Setting\Contracts\SettingsRepository $settings * * @return \Psr\Http\Message\ResponseInterface|\Zend\Diactoros\Response */ public function handle(SettingsRepository $settings) { $handler = new SetHandler($this->container, $settings); $response = $handler->toResponse($this->request); return $response->generateHttpResponse(); }