src/Leevel/Kernel/Console/LinkPublic.php
public function handle(IApp $app): void
    {
        if (file_exists($link = $app->path('www/public'))) {
            $this->error(
                sprintf('The `%s` directory already exists.', $link)
            );

            return;
        }

        link(
            $path = $app->publicPath(), $link
        );

        $this->info(sprintf('Linked `%s` directory to `%s` successed.', $path, $link));
    }
public function handle(IApp $app): void
    {
        if (file_exists($link = $app->path('www/public'))) {
            $this->error(
                sprintf('The `%s` directory already exists.', $link)
            );

            return;
        }

        link(
            $path = $app->publicPath(), $link
        );

        $this->info(sprintf('Linked `%s` directory to `%s` successed.', $path, $link));
    }
响应命令.

@param \Leevel\Kernel\IApp $app