Skip to content

Commit 90f4f3e

Browse files
authored
Update custom.php
1 parent 5d78272 commit 90f4f3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/custom.php

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55

66
class CustomCommands {
77

8+
public static function showConfig() {
9+
$configPath = rex_path::coreData('config.yml');
10+
11+
if (file_exists($configPath)) {
12+
$configContent = file_get_contents($configPath);
13+
echo '<pre>' . htmlspecialchars($configContent) . '</pre>';
14+
} else {
15+
echo '<pre>Config not found</pre>';
16+
}
17+
}
818

919
public static function basepath(): string
1020
{

0 commit comments

Comments
 (0)