/**
  * @param CodecMatcherInterface $codecMatcher
  * @param ResponsesInterface    $responses
  * @param int                   $statusCode
  * @param Closure               $converter Exception to JSON API Error converter
  */
 public function __construct(CodecMatcherInterface $codecMatcher, ResponsesInterface $responses, $statusCode, Closure $converter)
 {
     parent::__construct($responses);
     $this->converter = $converter;
     $this->codecMatcher = $codecMatcher;
     $this->withStatusCode($statusCode);
 }
Ejemplo n.º 2
0
 /**
  * @param ResponsesInterface $responses
  * @param int                $statusCode
  */
 public function __construct(ResponsesInterface $responses, $statusCode)
 {
     parent::__construct($responses);
     $this->withStatusCode($statusCode);
 }