src/Leevel/Option/Console/Cache.php
public function handle(IApp $app): void
    {
        $this->line('Start to cache option.');

        $load = new Load($app->optionPath());
        $data = $load->loadData($app);

        $cachePath = $app->optionCachedPath();
        $this->basePath = $app->path();

        $this->writeCache($cachePath, $data);

        $this->info(sprintf('Option cache file %s cache successed.', $cachePath));
    }
public function handle(IApp $app): void
    {
        $this->line('Start to cache option.');

        $load = new Load($app->optionPath());
        $data = $load->loadData($app);

        $cachePath = $app->optionCachedPath();
        $this->basePath = $app->path();

        $this->writeCache($cachePath, $data);

        $this->info(sprintf('Option cache file %s cache successed.', $cachePath));
    }
响应命令.

@param \Leevel\Kernel\IApp $app