mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
addFunctionSmart allow array as callable
This commit is contained in:
parent
0340915b76
commit
d9b21ea68c
@ -668,7 +668,7 @@ class Compiler
|
||||
*/
|
||||
public static function smartFuncParser(Tokenizer $tokens, Tag $tag)
|
||||
{
|
||||
if (strpos($tag->callback, "::")) {
|
||||
if (strpos($tag->callback, "::") || is_array($tag->callback)) {
|
||||
list($class, $method) = explode("::", $tag->callback, 2);
|
||||
$ref = new \ReflectionMethod($class, $method);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user