@artilingo/artiframe-cli 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,6 +17,14 @@ namespace Bin {
|
|
|
17
17
|
|
|
18
18
|
\App\DotEnv::load($_SERVER['DOCUMENT_ROOT'] . '/../.env');
|
|
19
19
|
|
|
20
|
+
// Auto-load config files
|
|
21
|
+
$configFiles = glob($_SERVER['DOCUMENT_ROOT'] . '/../config/*.php');
|
|
22
|
+
if ($configFiles) {
|
|
23
|
+
foreach ($configFiles as $cfg) {
|
|
24
|
+
require_once $cfg;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
20
28
|
class ViewMethod
|
|
21
29
|
{
|
|
22
30
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artilingo/artiframe-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "ArtiFrame — Zero-dependency native PHP framework with a powerful multilingual CLI. Scaffold projects, generate views, APIs and classes instantly.",
|
|
5
5
|
"main": "bin/artiframe.js",
|
|
6
6
|
"bin": {
|
|
@@ -724,7 +724,7 @@ REDISPHP;
|
|
|
724
724
|
$this->tick('public/landing.php');
|
|
725
725
|
|
|
726
726
|
// public/index.php - router
|
|
727
|
-
$indexContent = "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\
|
|
727
|
+
$indexContent = "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nrouteLink();\n";
|
|
728
728
|
file_put_contents($targetDir . '/public/index.php', $indexContent);
|
|
729
729
|
$this->tick('public/index.php');
|
|
730
730
|
|