src/Leevel/Console/Make.php
protected function saveTemplateResult(): void
    {
        $saveFilePath = $this->getSaveFilePath();

        if (is_file($saveFilePath)) {
            $e = 'File is already exits.'.PHP_EOL.
                $this->formatFile($saveFilePath);

            throw new RuntimeException($e);
        }

        create_file($saveFilePath, $this->getTemplateResult());
    }
protected function saveTemplateResult(): void
    {
        $saveFilePath = $this->getSaveFilePath();

        if (is_file($saveFilePath)) {
            $e = 'File is already exits.'.PHP_EOL.
                $this->formatFile($saveFilePath);

            throw new RuntimeException($e);
        }

        create_file($saveFilePath, $this->getTemplateResult());
    }
保存模板.