feat(app): fresh module-platform, provider, middleware, rule and support implementation

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 14:15:49 +02:00
parent 56cb653a2d
commit 7d5f29a1d4
24 changed files with 1580 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
namespace App\Platform\Modules\Console;
use App\Platform\Modules\Runtime\ModuleInstaller;
use Illuminate\Console\Command;
/**
* Finishes an installation whose module files are already sitting on disk.
*/
class InstallModuleCommand extends Command
{
/** @var string */
protected $signature = 'install:module {module} {version}';
/** @var string */
protected $description = 'Install cloned module.';
public function __construct()
{
parent::__construct();
}
/**
* Hand the module name and version to the runtime installer.
*/
public function handle(): int
{
$name = $this->argument('module');
$version = $this->argument('version');
ModuleInstaller::complete($name, $version);
return self::SUCCESS;
}
}