public function __named(string $class, string $method, array $args = array())
    {
        FEnv::set("app.activity_called", array("class" => $class, "method" => $method));
        $container = FrameworkContainer::getInstance();
        $call = $container->get($class);
       
        $rs = $container->call($class."::".$method, $args);
        return ($rs);
    }
public function __named(string $class, string $method, array $args = array())
    {
        FEnv::set("app.activity_called", array("class" => $class, "method" => $method));
        $container = FrameworkContainer::getInstance();
        $call = $container->get($class);
       
        $rs = $container->call($class."::".$method, $args);
        return ($rs);
    }
public function __named ( string $ class , string $ method , array $ args = array ( ) ) { FEnv :: set ( "app.activity_called" , array ( "class" => $ class , "method" => $ method ) ) ; $ container = FrameworkContainer :: getInstance ( ) ; $ call = $ container -> get ( $ class ) ; $ rs = $ container -> call ( $ class . "::" . $ method , $ args ) ; return ( $ rs ) ; }
Pass method arguments by name
@param string $class Class name
@param string $method $method
@param array $args Method parameters
@return mixed
@throws \Exception
Pass method arguments by name