diff options
author | Thomas Lange <code@nerdmind.de> | 2024-11-15 16:41:11 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2024-11-15 17:10:11 +0100 |
commit | 5e076b70b79ddf7bc6e07122b4646961db280be5 (patch) | |
tree | 33d2a85bac6252db35913e42bfd9879925aaef6c /core/namespace/Application.php | |
parent | eb773b95f08dc79df1acad96296a92a9c71d48f1 (diff) | |
download | blog-5e076b70b79ddf7bc6e07122b4646961db280be5.tar.gz blog-5e076b70b79ddf7bc6e07122b4646961db280be5.tar.xz blog-5e076b70b79ddf7bc6e07122b4646961db280be5.zip |
FunctionParser: No static property/methods anymore
Problem: When creating a new "FunctionParser" object, it should not know
the previously registered content functions which were saved in a static
class property and registered via static class method.
If one creates a new "FunctionParser" object, one would expect that the
array of registered content functions in that object is empty.
Changes:
- Make static property "functions" non-static
- Make static method "register" non-static
- Add new method "registerFromArray"
Diffstat (limited to 'core/namespace/Application.php')
-rw-r--r-- | core/namespace/Application.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php index 01c36ac..1f1e6f6 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -224,7 +224,6 @@ class Application { contain only numbers, uppercase letters and underscores!'); } - FunctionParser::register($name, $callback); self::$contentFunctions[$name] = $callback; } |