Prepare Beta Version

This commit is contained in:
2025-05-29 10:05:27 -06:00
parent a7002701f5
commit ea6b04f3f4
254 changed files with 5653 additions and 6569 deletions

View File

@ -0,0 +1,22 @@
<?php
namespace Koneko\VuexyAdmin\Application\Modules;
class ModulePackageRegistrarService
{
public function registerFromMetadata(ModuleMetadataDTO $metadata, array $extra = []): ModulePackage
{
return ModulePackage::updateOrCreate([
'name' => $metadata->name,
], array_merge([
'display_name' => $metadata->displayName,
'description' => $metadata->description,
'keywords' => $metadata->keywords,
'author_name' => $metadata->authorName,
'author_email' => $metadata->authorEmail,
'composer' => $metadata->toArray(),
'repository_type'=> 'public',
'active' => true,
], $extra));
}
}