Skip to content

Commit

Permalink
Update custom.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Mar 23, 2024
1 parent 5d78272 commit 90f4f3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@

class CustomCommands {

public static function showConfig() {
$configPath = rex_path::coreData('config.yml');

if (file_exists($configPath)) {
$configContent = file_get_contents($configPath);
echo '<pre>' . htmlspecialchars($configContent) . '</pre>';
} else {
echo '<pre>Config not found</pre>';
}
}

public static function basepath(): string
{
Expand Down

0 comments on commit 90f4f3e

Please sign in to comment.