| Conditions | 2 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function __invoke(): void |
||
| 29 | { |
||
| 30 | try { |
||
| 31 | $console = $this->container->get(Application::class); |
||
| 32 | $console->add($this->container->get(\Chinstrap\Core\Console\Commands\FlushCache::class)); |
||
| 33 | $console->add( |
||
| 34 | new \Chinstrap\Core\Console\Commands\Shell( |
||
| 35 | $this->container, |
||
| 36 | $this->container->get(Psysh::class) |
||
| 37 | ) |
||
| 38 | ); |
||
| 39 | $console->add($this->container->get(\Chinstrap\Core\Console\Commands\Server::class)); |
||
| 40 | $console->add($this->container->get(\Chinstrap\Core\Console\Commands\GenerateIndex::class)); |
||
| 41 | $console->add($this->container->get(\Chinstrap\Core\Console\Commands\GenerateSitemap::class)); |
||
| 42 | $console->run(); |
||
| 43 | } catch (\Throwable $err) { |
||
| 44 | $this->returnError($err); |
||
| 45 | } |
||
| 48 |