7 Commits
1.0.0 ... 1.0.4

Author SHA1 Message Date
Gregory Letellier
f204e5f13f use renamed kletellier/framework 2023-11-20 10:07:22 +01:00
Gregory Letellier
33f4080ec6 suppression du composer.lock du git 2023-11-17 10:17:23 +01:00
Gregory Letellier
e4505017be ajout rep app dans le beautifier 2023-11-17 10:14:10 +01:00
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
Gregory Letellier
7cee4e1d94 add copy .env file after install 2023-11-14 15:31:54 +01:00
Gregory Letellier
f024cceb6b passage en mode composer sur le gitea 2023-11-14 14:51:28 +01:00
4 changed files with 13 additions and 5340 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="PSR12"/> <rule ref="PSR12"/>
<file>src/</file> <file>app/</file>
<file>console</file> <file>console</file>
<arg name="colors"/> <arg name="colors"/>
</ruleset> </ruleset>

View File

@@ -5,17 +5,12 @@
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "~8.1", "php": "~8.1",
"greg/framework": "dev-master", "kletellier/framework": "~1.0"
"kletellier/pdowrapper": "dev-master"
}, },
"repositories": [ "repositories": [
{ {
"type": "git", "type": "composer",
"url": "https://git.kletellier.xyz/greg/framework.git" "url": "https://git.kletellier.xyz/api/packages/greg/composer"
},
{
"type": "git",
"url": "https://git.kletellier.xyz/greg/pdowrapper.git"
} }
], ],
"require-dev": { "require-dev": {
@@ -38,5 +33,10 @@
"pestphp/pest-plugin": true, "pestphp/pest-plugin": true,
"infection/extension-installer": true "infection/extension-installer": true
} }
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.default', '.env');\""
]
} }
} }

5330
composer.lock generated

File diff suppressed because it is too large Load Diff

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";