src/Leevel/View/Console/Cache.php
public function handle(IApp $app, IOption $option): void
    {
        $this->app = $app;
        $this->parser = $this->createParser();
        $this->html = $this->getHtmlView();

        $this->line('Start to cache view.');

        foreach ($this->paths() as $path) {
            $this->compiles($this->findFiles([$path]), $path);
        }

        $this->info('View files cache successed.');
    }
public function handle(IApp $app, IOption $option): void
    {
        $this->app = $app;
        $this->parser = $this->createParser();
        $this->html = $this->getHtmlView();

        $this->line('Start to cache view.');

        foreach ($this->paths() as $path) {
            $this->compiles($this->findFiles([$path]), $path);
        }

        $this->info('View files cache successed.');
    }
响应命令.

@param \Leevel\Kernel\IApp    $app
@param \Leevel\Option\IOption $option