@artilingo/artiframe-cli 2.0.2 → 2.0.3

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,14 +17,6 @@ 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
-
28
20
  class ViewMethod
29
21
  {
30
22
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artilingo/artiframe-cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
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": {
@@ -643,6 +643,8 @@ REDISPHP;
643
643
  ][$lang] ?? ['file' => 'guide.html', 'installed' => 'ArtiFrame Installed Successfully!', 'guide' => 'To get started, see', 'note' => '💡 <b>Note:</b> If you want to change the homepage (landing.php) filename, you must also update the default page name in the <code>routeLink()</code> method inside <code>bin/ViewMethod.php</code>.'];
644
644
 
645
645
  $landingContent = "<?php\n"
646
+ . "require_once __DIR__ . '/../app/ViewControl.php';\n"
647
+ . "use Bin\\ViewMethod;\n\n"
646
648
  . "if (isset(\$_GET['guide'])) {\n"
647
649
  . " header('Content-Type: text/html; charset=utf-8');\n"
648
650
  . " readfile(__DIR__ . '/../{$docFile['file']}');\n"