SAND-framework/console/bin.php
Emmanuel ROY bcc743ea70 Ajout d'un template pour les commandes console permettant de netooyer le cache et d'ajouter à la volé des modules déjà testé
TODO: créer les commandes complétement
TODO: envoyer les bugs wordpress
TODO: corriger le bug de création de la base de donnée pour prestashop
2019-12-06 22:56:15 +01:00

18 lines
No EOL
497 B
PHP

#!/usr/bin/php
<?php
//var_dump($argv);
if(isset($argv[1])) {
$option = explode(':', $argv[1]);
$command_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . "command" . DIRECTORY_SEPARATOR . $option[0] . ".class.php";
if (is_file($command_file)) {
require $command_file;
$class = $option[0];
$static_method = $option[1];
$class::$static_method();
} else {
print "Command not found !\n";
}
}else{
print "No command was specified !\n";
}