- First task of v2 done, tokens can now have unlimited options attached to it
This commit is contained in:
1 parent
afeb8789b5
commit
acd9f8c72e
8 files changed
+82
-41
No files matched your search
@@ -88,6 +88,14 @@ abstract class Context {
|
||||
|
||||
}
|
||||
|
||||
public function tokenOptions(string $token, bool $export = false) : array|string
|
||||
{
|
||||
$options = explode('.', strtolower($token));
|
||||
array_shift($options);
|
||||
|
||||
return $export ? var_export($options, true) : $options;
|
||||
}
|
||||
|
||||
public function pushFunction($name, Callable $callable) : void
|
||||
{
|
||||
$this->functionStack[$name] = $callable;
|
||||
|
||||
Reference in new issue
Block a user