2b6ac77922
Test sur une api rest -> OK! Test sur le deplacement d'une autre page de compte -> OK! TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md TODO: finir créer les commandes pour l'ajout de modules
22 lines
635 B
PHP
22 lines
635 B
PHP
#!/usr/bin/php
|
|
<?php
|
|
//var_dump($argv);
|
|
|
|
define("VENDOR_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."vendor");
|
|
require VENDOR_PATH.DIRECTORY_SEPARATOR."autoload.php";
|
|
|
|
|
|
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";
|
|
} |