first commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Command;
|
||||
|
||||
use App\Utils\Inv;
|
||||
use Flight;
|
||||
use flight\commands\AbstractBaseCommand;
|
||||
|
||||
/**
|
||||
* Generate join all product parameter on single table
|
||||
*
|
||||
* Usage: php runway produk:join
|
||||
*
|
||||
*/
|
||||
|
||||
class ProdukCommand extends AbstractBaseCommand {
|
||||
/**
|
||||
* Construct
|
||||
* @param array<string,mixed> $config From .runway-config.json
|
||||
*/
|
||||
public function __construct(array $config) {
|
||||
parent::__construct('produk:join', 'Generate join all product parameter on single table', $config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the function
|
||||
* @return void
|
||||
*/
|
||||
public function execute() {
|
||||
$io = $this->io();
|
||||
|
||||
require ($this->projectRoot . '/app/config/runway.php');
|
||||
|
||||
$produk = new Inv($app);
|
||||
$produk->Produk_Join(0);
|
||||
$io->ok("Done.", true);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user