@artilingo/artiframe-cli 2.0.0 → 2.0.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artilingo/artiframe-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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\nrouteLink();\n";
727
+ $indexContent = "<?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nforeach (glob(__DIR__ . '/../config/*.php') as \$cfg) {\n require_once \$cfg;\n}\n\nrouteLink();\n";
728
728
  file_put_contents($targetDir . '/public/index.php', $indexContent);
729
729
  $this->tick('public/index.php');
730
730