Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function callMethod(string $caller = null)
- {
- $caller?: return;
- preg_match_all('#jsc:\/\/([a-z]+):([a-z]+)@(.*?)#', $caller, $m);
- !(count($m) < 3)?: return;
- [$s, $class, $method, $args] = list($m);
- return forward_static_call([$class, $method], explode(',', $args));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement