Skip to content

Commit

Permalink
Add getExtension() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Nov 22, 2023
1 parent 6be0574 commit 6c130d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Config/ConfigInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ public function __construct($dirroot, $wwwroot, $dataroot=false) {
$this->lumen_storage = sprintf("%s/storage/", $dirroot);
}

function getExtension($key, $default=null) {
return $this->extensions[$key] ?? $default;
}

function getCurrentFile($file) {
$root = $this->dirroot;
$path = realpath($file);
Expand Down

0 comments on commit 6c130d2

Please sign in to comment.