feat build: Create new ArtisanCommandConstructor

This commit is contained in:
prplwtf 2024-06-22 12:55:02 +02:00
parent c2d0864e31
commit 4dbffbdd60

View file

@ -0,0 +1,21 @@
<?php
namespace Pterodactyl\Console\Commands\BlueprintFramework\Extensions\[id^];
use Illuminate\Console\Command;
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Console\BlueprintConsoleLibrary as BlueprintExtensionLibrary;
class __ArtisanCommand__ extends Command
{
protected $signature = '[IDENTIFIER]:[SIGNATURE]';
protected $description = '[DESCRIPTION]';
public function __construct(
private BlueprintExtensionLibrary $blueprint,
) { parent::__construct(); }
public function handle()
{
require_once base_path().'/.blueprint/extensions/[IDENTIFIER]/console/functions/[FILENAME]';
}
}