private static array
$knownTypes =
[ 'production',
'development',
];
/**
* {@inheritDoc}
*/
public function run(array
$params) { if ($params ===
[]) { CLI::
write(sprintf('Your environment is currently set as %s.', CLI::
color($_SERVER['CI_ENVIRONMENT'
] ?? ENVIRONMENT, 'green'
)));
CLI::
newLine();
return;
} $env =
strtolower(array_shift($params));
if ($env === 'testing'
) { CLI::
error('The "testing" environment is reserved for PHPUnit testing.', 'light_gray', 'red'
);
CLI::
error('You will not be able to run spark under a "testing" environment.', 'light_gray', 'red'
);
CLI::
newLine();