remove src folder

This commit is contained in:
Gregory Letellier
2023-11-14 12:03:02 +01:00
parent db32b2e046
commit 8bd8e86748
12 changed files with 416 additions and 628 deletions

View File

@@ -25,11 +25,11 @@ function findCommandClasses($directory)
/**
* Enable autoload
*/
require_once ROOT . DS . 'vendor'. DS . 'autoload.php';
require_once ROOT . DIRECTORY_SEPARATOR . 'vendor'. DIRECTORY_SEPARATOR . 'autoload.php';
$application = new Application();
// Load all commands in Commands folder
$command_directory = ROOT . DS . 'src' . DS . "Commands";
$command_directory = ROOT . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . "Commands";
$commandClasses = findCommandClasses($command_directory);
foreach ($commandClasses as $commandClass) {
$clsname = "App\\Commands\\$commandClass";