forked from MahoCommerce/maho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maho
executable file
·63 lines (49 loc) · 2.22 KB
/
maho
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env php
<?php
/**
* Maho
*
* @category Maho
* @package MahoCLI
* @copyright Copyright (c) 2024 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
define('MAHO_ROOT_DIR', __DIR__);
define('MAHO_PUBLIC_DIR', __DIR__ . '/public');
require __DIR__ . '/vendor/autoload.php';
use MahoCLI\CommandDiscoverer;
use Symfony\Component\Console\Application;
$application = new Application('');
$application->add(new \MahoCLI\Commands\AdminUserList());
$application->add(new \MahoCLI\Commands\AdminUserCreate());
$application->add(new \MahoCLI\Commands\AdminUserChangepassword());
$application->add(new \MahoCLI\Commands\AdminUserEnable());
$application->add(new \MahoCLI\Commands\AdminUserDisable());
$application->add(new \MahoCLI\Commands\CacheEnable());
$application->add(new \MahoCLI\Commands\CacheDisable());
$application->add(new \MahoCLI\Commands\CacheFlush());
$application->add(new \MahoCLI\Commands\CustomerCreate());
$application->add(new \MahoCLI\Commands\CustomerChangepassword());
$application->add(new \MahoCLI\Commands\CustomerDelete());
$application->add(new \MahoCLI\Commands\CustomerList());
$application->add(new \MahoCLI\Commands\IndexList());
$application->add(new \MahoCLI\Commands\IndexReindex());
$application->add(new \MahoCLI\Commands\IndexReindexAll());
$application->add(new \MahoCLI\Commands\CronHistory());
$application->add(new \MahoCLI\Commands\CronList());
$application->add(new \MahoCLI\Commands\CronRun());
$application->add(new \MahoCLI\Commands\LogClean());
$application->add(new \MahoCLI\Commands\LogStatus());
$application->add(new \MahoCLI\Commands\HealthCheck());
$application->add(new \MahoCLI\Commands\Install());
$application->add(new \MahoCLI\Commands\Serve());
$application->add(new \MahoCLI\Commands\LegacyRenameMysql4Classes());
$application->add(new \MahoCLI\Commands\SysCurrencies());
$application->add(new \MahoCLI\Commands\SysLocales());
$application->add(new \MahoCLI\Commands\SysTimezones());
$discoverer = new CommandDiscoverer();
$commands = $discoverer->discover(__DIR__ . '/vendor/*/*') + $discoverer->discover(__DIR__);
foreach ($commands as $command) {
$application->add($command);
}
$application->run();