src/Leevel/Kernel/Console/Autoload.php
public function handle(IApp $app): void
    {
        $this->app = $app;

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

        if (false === $this->ignore()) {
            $this->line('Exec composer dump-autoload -o.');
            exec($this->normalizeComposerCommand());
        }

        $data = $this->data();

        $cachePath = $this->autoloadCachedPath();

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

        $this->info(sprintf('Autoload file %s cache successed.', $cachePath));
    }
public function handle(IApp $app): void
    {
        $this->app = $app;

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

        if (false === $this->ignore()) {
            $this->line('Exec composer dump-autoload -o.');
            exec($this->normalizeComposerCommand());
        }

        $data = $this->data();

        $cachePath = $this->autoloadCachedPath();

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

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

@param \Leevel\Kernel\IApp $app