2 Commits
1.0.2 ... 1.0.3

Author SHA1 Message Date
Gregory Letellier
3338142a7f change version limitation in composer.json 2023-11-17 10:07:50 +01:00
Gregory Letellier
0a16e2ea98 add application in console 2023-11-17 10:05:53 +01:00
2 changed files with 4 additions and 2 deletions

View File

@@ -5,8 +5,7 @@
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "~8.1", "php": "~8.1",
"greg/framework": "^1.0", "greg/framework": "~1.0"
"kletellier/pdowrapper": "^1.0"
}, },
"repositories": [ "repositories": [
{ {

View File

@@ -27,6 +27,9 @@ function findCommandClasses($directory)
*/ */
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
$command_directory = ROOT . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . "Commands"; $command_directory = ROOT . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . "Commands";