Introduced Minio support to store and manage wash certificates, replacing local file storage. This includes implementing traits, interfaces, and a Minio client integration, along with a CLI utility and relevant tests. Updated relevant modules and configurations.
23 lines
602 B
PHP
23 lines
602 B
PHP
<?php
|
|
// This script only runs when the program is called from the command line. It is used to run the CLI script.
|
|
if (php_sapi_name() !== 'cli') {
|
|
exit;
|
|
}
|
|
$args = $argv;
|
|
echo "This is the CLI script";
|
|
echo "\n";
|
|
echo "Arguments: ";
|
|
print_r($args);
|
|
|
|
// If the first argument is 'run', switch to the second argument
|
|
if ($args[1] === 'run') {
|
|
switch ($args[2]) {
|
|
case 'minio-test':
|
|
echo "Running the minio test script";
|
|
require_once 'tests/minio/minioTest.php';
|
|
break;
|
|
default:
|
|
echo "Invalid script name";
|
|
break;
|
|
}
|
|
} |