Compare commits

...
2 Commits
4 changed files with 10 additions and 7 deletions
+2
View File
@@ -16,6 +16,8 @@ declare(strict_types=1);
namespace App\Controller;
use DateInterval;
use DateTime;
use flight\Engine;
use flight\Session;
use flight\database\SimplePdo;
+4 -3
View File
@@ -11,7 +11,7 @@ use Webapp\Data\Cache;
/**
* Generate all js app cache for all user
*
* Usage: php runway user:cache
* Usage: php runway caches
*
*/
@@ -21,7 +21,7 @@ class CacheCommand extends AbstractBaseCommand {
* @param array<string,mixed> $config From .runway-config.json
*/
public function __construct(array $config) {
parent::__construct('user:cache', 'Generate all js app cache for all user', $config);
parent::__construct('caches', 'Generate all js app cache for all user', $config);
}
/**
@@ -35,9 +35,10 @@ class CacheCommand extends AbstractBaseCommand {
$asset = require($this->projectRoot . '/app/config/asset.php');
$cache = new Cache($app);
$cache->set_dev($config->env() === 'development');
$cache->set_asset($asset);
$ares = $cache->Make_Cache();
if (is_array($ares)) $io->info("Processed of {$ares['user_count']} user.", true);
if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true);
$io->ok("Done.", true);
}
+2 -2
View File
@@ -11,7 +11,7 @@ use flight\commands\AbstractBaseCommand;
/**
* Check Status of PPOB Transaction from Server
*
* Usage: php runway ppob:check
* Usage: php runway ppob-check
*
*/
@@ -21,7 +21,7 @@ class PPOBCommand extends AbstractBaseCommand {
* @param array<string,mixed> $config From .runway-config.json
*/
public function __construct(array $config) {
parent::__construct('ppob:check', 'Check Status of PPOB Transaction from Server', $config);
parent::__construct('ppob-check', 'Check Status of PPOB Transaction from Server', $config);
}
/**
+2 -2
View File
@@ -11,7 +11,7 @@ use flight\commands\AbstractBaseCommand;
/**
* Generate join all product parameter on single table
*
* Usage: php runway produk:join
* Usage: php runway produk-join
*
*/
@@ -21,7 +21,7 @@ class ProdukCommand extends AbstractBaseCommand {
* @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);
parent::__construct('produk-join', 'Generate join all product parameter on single table', $config);
}
/**