| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 93 | 4 | protected function init(Container $container) |
|
| 94 | { |
||
| 95 | 4 | $this->kernel = $container->getService( |
|
| 96 | 4 | Kernel::class |
|
| 97 | ); |
||
| 98 | 4 | $this->config = $container->getService( |
|
| 99 | 4 | Config::class |
|
| 100 | ); |
||
| 101 | 4 | $this->configParams = $this->config->getSettings( |
|
| 102 | 4 | Config::_MIDDLEWARES |
|
| 103 | 4 | )[get_called_class()]; |
|
| 104 | 4 | $this->request = $container->getService(Request::class); |
|
| 105 | 4 | $this->headers = $this->request->getHeaders(); |
|
| 106 | 4 | $this->response = $container->getService(Response::class); |
|
| 107 | 4 | $this->logger = $container->getService(\Monolog\Logger::class); |
|
| 108 | 4 | $this->enabled = $this->configParams['enabled']; |
|
| 109 | 4 | $this->prefix = $this->configParams['prefix']; |
|
| 110 | 4 | $this->exclude = $this->configParams['exclude']; |
|
| 111 | } |
||
| 124 |