| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function execute(Arguments $args, ConsoleIo $io): ?int |
||
| 33 | { |
||
| 34 | $twigCachePath = CACHE . 'twigView'; |
||
| 35 | $folder = new Folder($twigCachePath); |
||
| 36 | if (file_exists($twigCachePath) && !$folder->delete()) { |
||
| 37 | $io->error("Error removing Twig cache files in {$twigCachePath}"); |
||
| 38 | $this->abort(); |
||
| 39 | } |
||
| 40 | $io->out("<success>Cleared twig cache</success>"); |
||
| 41 | |||
| 42 | return parent::execute($args, $io); |
||
| 43 | } |
||
| 45 |