1 | <?php |
||
25 | class ResponseFactory extends Responses |
||
26 | { |
||
27 | /** |
||
28 | * @var EnvironmentInterface |
||
29 | */ |
||
30 | protected $environment; |
||
31 | |||
32 | /** |
||
33 | * @var EncodingParametersInterface |
||
34 | */ |
||
35 | protected $params; |
||
36 | |||
37 | /** |
||
38 | * Constructor |
||
39 | * |
||
40 | * @param EnvironmentInterface $environment |
||
41 | * @param EncodingParametersInterface|null $params |
||
42 | */ |
||
43 | 1 | public function __construct(EnvironmentInterface $environment, EncodingParametersInterface $params = null) |
|
44 | { |
||
45 | 1 | $this->environment = $environment; |
|
46 | 1 | $this->params = $params; |
|
47 | 1 | } |
|
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | 1 | protected function createResponse($content, $statusCode, array $headers) |
|
53 | { |
||
54 | 1 | return new Response($content, $statusCode, $headers); |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | protected function getEncoder() |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | protected function getUrlPrefix() |
||
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | protected function getEncodingParameters() |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | protected function getSchemaContainer() |
||
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 1 | protected function getSupportedExtensions() |
|
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | */ |
||
100 | 1 | protected function getMediaType() |
|
104 | } |