| Conditions | 3 |
| Paths | 4 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function _initialize() |
||
| 13 | { |
||
| 14 | $cwd = getcwd(); |
||
| 15 | $projectDir = Configuration::projectDir(); |
||
| 16 | chdir($projectDir); |
||
| 17 | $this->container = require $projectDir . $this->config['container']; |
||
| 18 | $app = $this->container->get(\Zend\Expressive\Application::class); |
||
| 19 | |||
| 20 | $pipelineFile = $projectDir . 'config/pipeline.php'; |
||
| 21 | if (file_exists($pipelineFile)) { |
||
| 22 | require $pipelineFile; |
||
| 23 | } |
||
| 24 | $routesFile = $projectDir . 'config/routes.php'; |
||
| 25 | if (file_exists($routesFile)) { |
||
| 26 | require $routesFile; |
||
| 27 | } |
||
| 28 | chdir($cwd); |
||
| 29 | |||
| 30 | $this->application = $app; |
||
| 31 | // remove the init method, since emitter is not part of ze3 |
||
| 32 | $this->responseCollector = new ZendExpressiveConnector\ResponseCollector; |
||
| 33 | } |
||
| 34 | |||
| 46 |