This commit is contained in:
Билай Станислав 2024-12-18 16:38:08 +03:00
parent bcf8b6621b
commit 798c687547
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "Kernel", "name": "Kernel",
"version": "0.2", "version": "0.1",
"author": "ITGuild", "author": "ITGuild",
"slug": "kernel", "slug": "kernel",
"type": "kernel", "type": "kernel",

View File

@ -15,7 +15,7 @@ $form->field(\itguild\forms\inputs\Select::class, "files[]", [
]) ])
->setLabel("Дополнительные файлы") ->setLabel("Дополнительные файлы")
->setOptions([ ->setOptions([
'.env.example' => '.env.example', 'env.example' => 'env.example',
'bootstrap.php' => 'bootstrap', 'bootstrap.php' => 'bootstrap',
'composer.json' => 'composer.json', 'composer.json' => 'composer.json',
]) ])

View File

@ -75,7 +75,7 @@ class KernelService
foreach ($files as $file) { foreach ($files as $file) {
Debug::prn($file); Debug::prn($file);
if ($file === 'bootstrap') { if ($file === 'bootstrap.php') {
Debug::prn(123); Debug::prn(123);
$this->files->recursiveRemoveDir(ROOT_DIR . '/bootstrap'); $this->files->recursiveRemoveDir(ROOT_DIR . '/bootstrap');
$this->files->copyKernelFolder($tmpKernelDirFull . 'bootstrap' , ROOT_DIR . '/bootstrap'); $this->files->copyKernelFolder($tmpKernelDirFull . 'bootstrap' , ROOT_DIR . '/bootstrap');