| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 84 | protected function init(Container $container) |
||
| 85 | { |
||
| 86 | $this->config = $container->getService(\App\Config::class); |
||
| 87 | $this->configParams = $this->config->getSettings( |
||
| 88 | Config::_MIDDLEWARES |
||
| 89 | )[get_called_class()]; |
||
| 90 | $this->request = $container->getService(\App\Http\Request::class); |
||
| 91 | $this->headers = $this->request->getHeaders(); |
||
| 92 | $this->response = $container->getService(\App\Http\Response::class); |
||
| 93 | $this->logger = $container->getService(\Monolog\Logger::class); |
||
| 94 | $this->enabled = $this->configParams['enabled']; |
||
| 95 | $this->prefix = $this->configParams['prefix']; |
||
| 96 | } |
||
| 109 |