MicroFrameWork/kernel/console/routs/cli.php

44 lines
2.8 KiB
PHP
Raw Normal View History

2024-07-29 15:57:20 +03:00
<?php
use kernel\App;
use Phroute\Phroute\RouteCollector;
App::$collector->console("hello", [\kernel\console\controllers\MainController::class, "indexAction"]);
App::$collector->group(["prefix" => "migration"], callback: function (RouteCollector $router){
App::$collector->console('run', [\kernel\console\controllers\MigrationController::class, 'actionRun']);
App::$collector->console('init', [\kernel\console\controllers\MigrationController::class, 'actionCreateMigrationTable']);
App::$collector->console('create', [\kernel\console\controllers\MigrationController::class, 'actionCreate']);
App::$collector->console('rollback', [\kernel\console\controllers\MigrationController::class, 'actionRollback']);
});
2024-09-10 16:44:27 +03:00
App::$collector->group(["prefix" => "admin-theme"], callback: function (RouteCollector $router){
2024-09-11 17:38:46 +03:00
App::$collector->console('install', [\kernel\console\controllers\AdminThemeController::class, 'actionInstallTheme']);
2024-09-12 12:06:44 +03:00
App::$collector->console('uninstall', [\kernel\console\controllers\AdminThemeController::class, 'actionUninstallTheme']);
2024-09-10 16:44:27 +03:00
});
2024-10-22 16:40:40 +03:00
App::$collector->group(["prefix" => "secure"], callback: function (RouteCollector $router){
App::$collector->console('create-secret-key', [\kernel\console\controllers\SecureController::class, 'actionCreateSecretKey']);
});
2024-09-23 17:03:42 +03:00
App::$collector->group(["prefix" => "admin"], callback: function (RouteCollector $router){
App::$collector->console('init', [\kernel\console\controllers\AdminConsoleController::class, 'actionInit']);
});
2024-10-08 12:16:41 +03:00
App::$collector->group(["prefix" => "module"], callback: function (RouteCollector $router){
App::$collector->console('install', [\kernel\console\controllers\ModuleController::class, 'actionInstallModule']);
App::$collector->console('uninstall', [\kernel\console\controllers\ModuleController::class, 'actionUninstallModule']);
2024-10-08 17:06:14 +03:00
App::$collector->console('pack', [\kernel\console\controllers\ModuleController::class, 'actionPackModule']);
2024-10-10 11:19:51 +03:00
App::$collector->console('update', [\kernel\console\controllers\ModuleController::class, 'actionUpdateModule']);
App::$collector->console('construct', [\kernel\console\controllers\ModuleController::class, 'actionConstructModule']);
2024-12-12 12:41:45 +03:00
App::$collector->console('mk', [\kernel\console\controllers\ModuleController::class, 'actionMk']);
2024-10-08 12:16:41 +03:00
});
2024-10-14 15:52:52 +03:00
App::$collector->group(["prefix" => "kernel"], callback: function (RouteCollector $router){
// App::$collector->console('install', [\kernel\console\controllers\ModuleController::class, 'actionInstallModule']);
// App::$collector->console('uninstall', [\kernel\console\controllers\ModuleController::class, 'actionUninstallModule']);
App::$collector->console('pack', [\kernel\console\controllers\KernelController::class, 'actionPackKernel']);
App::$collector->console('update', [\kernel\console\controllers\KernelController::class, 'actionUpdateKernel']);
});