-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathands.php
48 lines (42 loc) · 2.26 KB
/
ands.php
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
#!/usr/bin/env php
<?php
// application.php
require __DIR__.'/vendor/autoload.php';
restore_error_handler();
restore_exception_handler();
date_default_timezone_set('UTC');
use Symfony\Component\Console\Application;
if (!file_exists('.env')) {
die("Installation incompleted. .env file missing");
}
$dotenv = new Dotenv\Dotenv(__DIR__);
$result = $dotenv->load();
$application = new Application();
$application->add(new \ANDS\Commands\ConceptsCommand());
$application->add(new \ANDS\Commands\RegistryObject\RegistryObjectGetCommand());
$application->add(new \ANDS\Commands\DOISyncCommand());
$application->add(new \ANDS\Commands\RegistryObject\RegistryObjectSyncCommand());
$application->add(new \ANDS\Commands\RegistryObject\RegistryObjectProcessCommand());
//$application->add(new \ANDS\Commands\RegistryObject\RegistryObjectUpdateStatsCommand());
$application->add(new \ANDS\Commands\RunScriptCommand());
$application->add(new \ANDS\Commands\ExportCommand());
$application->add(new \ANDS\Commands\DataSource\DataSourceProcessCommand());
$application->add(new \ANDS\Commands\ClearCacheCommand());
$application->add(new \ANDS\Commands\WarmCacheCommand());
$application->add(new \ANDS\Commands\Export\ExportRoles());
$application->add(new \ANDS\Commands\Mycelium\MyceliumImportRecordCommand());
$application->add(new \ANDS\Commands\Mycelium\MyceliumImportDataSourceCommand());
$application->add(new \ANDS\Commands\Mycelium\MyceliumIndexRecordCommand());
$application->add(new \ANDS\Commands\DataSource\DataSourceImportMyceliumCommand());
$application->add(new \ANDS\Commands\DataSource\DataSourceIndexMyceliumCommand());
$application->add(new \ANDS\Commands\DataSource\DataSourceWipeCommand());
$application->add(new \ANDS\Commands\Backup\BackupsCreateCommand());
$application->add(new \ANDS\Commands\Backup\BackupRestoreCommand());
$application->add(new \ANDS\Commands\Backup\BackupValidateCommand());
$application->add(new \ANDS\Commands\Task\TaskRunCommand());
$application->add(new \ANDS\Commands\Task\TaskStopCommand());
$application->add(new \ANDS\Commands\Queue\QueueSyncCommand());
$application->add(new \ANDS\Commands\Queue\QueueWorkCommand());
$application->add(new \ANDS\Commands\Queue\QueueListCommand());
$application->add(new \ANDS\Commands\Queue\QueueFlushCommand());
$application->run();