add application in console

This commit is contained in:
Gregory Letellier
2023-11-17 10:05:53 +01:00
parent 7cee4e1d94
commit 0a16e2ea98

View File

@@ -26,6 +26,9 @@ function findCommandClasses($directory)
* Enable autoload * Enable autoload
*/ */
require_once ROOT . DIRECTORY_SEPARATOR . 'vendor'. DIRECTORY_SEPARATOR . 'autoload.php'; require_once ROOT . DIRECTORY_SEPARATOR . 'vendor'. DIRECTORY_SEPARATOR . 'autoload.php';
// start application
$kapp = new \Kletellier\Framework\Core\Kernel\Application(ROOT);
$application = new Application(); $application = new Application();
// Load all commands in Commands folder // Load all commands in Commands folder