aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/namespace/Application.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php
index 8346248..01c36ac 100644
--- a/core/namespace/Application.php
+++ b/core/namespace/Application.php
@@ -11,6 +11,7 @@ class Application {
private static $Language;
private static $Migrator;
private static $repositories = [];
+ private static $contentFunctions = [];
#===============================================================================
# Configuration array
@@ -224,6 +225,14 @@ class Application {
}
FunctionParser::register($name, $callback);
+ self::$contentFunctions[$name] = $callback;
+ }
+
+ #===============================================================================
+ # Return all known content functions
+ #===============================================================================
+ public static function getContentFunctions(): array {
+ return self::$contentFunctions;
}
#===============================================================================