Files
cmasa/app/commands/ProdukCommand.php

42 lines
845 B
PHP

<?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);
}
}