1 | <?php |
||
26 | class ResponseFactory extends Responses |
||
27 | { |
||
28 | /** |
||
29 | * @var ContainerInterface |
||
30 | */ |
||
31 | protected $schemas; |
||
32 | |||
33 | /** |
||
34 | * @var EnvironmentInterface |
||
35 | */ |
||
36 | protected $environment; |
||
37 | |||
38 | /** |
||
39 | * @var EncodingParametersInterface |
||
40 | */ |
||
41 | protected $params; |
||
42 | |||
43 | /** |
||
44 | * Constructor |
||
45 | * |
||
46 | * @param ContainerInterface $schemas |
||
47 | * @param EnvironmentInterface $environment |
||
48 | * @param EncodingParametersInterface|null $params |
||
49 | */ |
||
50 | 2 | public function __construct( |
|
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | 2 | protected function createResponse($content, $statusCode, array $headers) |
|
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | 1 | protected function getEncoder() |
|
72 | { |
||
73 | 1 | return $this->environment->getEncoder(); |
|
74 | } |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | protected function getUrlPrefix() |
||
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | 1 | protected function getEncodingParameters() |
|
88 | { |
||
89 | 1 | return $this->params; |
|
90 | } |
||
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | protected function getSchemaContainer() |
||
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | 2 | protected function getSupportedExtensions() |
|
107 | |||
108 | /** |
||
109 | * @inheritdoc |
||
110 | */ |
||
111 | 2 | protected function getMediaType() |
|
115 | } |
||
116 |