public function getDomain() { return $this->domain; }
/** * Use the action collaborators to get a response. * * @param Action $action * @param ServerRequestInterface $request * @param ResponseInterface $response * * @return ResponseInterface */ private function handle(Action $action, ServerRequestInterface $request, ResponseInterface $response) { $domain = $this->resolve($action->getDomain()); $input = $this->resolve($action->getInput()); $responder = $this->resolve($action->getResponder()); $payload = $this->payload($domain, $input, $request); $response = $this->response($responder, $request, $response, $payload); return $response; }