| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class HttpConfig extends InjectableConfig |
||
| 18 | { |
||
| 19 | public const CONFIG = 'http'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $config = [ |
||
| 25 | 'basePath' => '/', |
||
| 26 | 'headers' => [ |
||
| 27 | 'Content-Type' => 'text/html; charset=UTF-8' |
||
| 28 | ], |
||
| 29 | 'middleware' => [], |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getBasePath(): string |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Initial set of headers. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function getBaseHeaders(): array |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Initial middleware set. |
||
| 52 | * |
||
| 53 | * @return array|Autowire[] |
||
| 54 | */ |
||
| 55 | public function getMiddleware(): array |
||
| 60 |