src/Invoker.php
private function invokeClassMethod($class, $method, $namedParams, $classParams)
    {
        if (!class_exists($class)) {
            throw new \InvalidArgumentException("Class $class does not exist.");
        }

        $object = new $class();

        return $this->invokeObjectMethod($object, $method, $namedParams, $classParams);
    }
private function invokeClassMethod($class, $method, $namedParams, $classParams)
    {
        if (!class_exists($class)) {
            throw new \InvalidArgumentException("Class $class does not exist.");
        }

        $object = new $class();

        return $this->invokeObjectMethod($object, $method, $namedParams, $classParams);
    }
private function invokeClassMethod ( $ class , $ method , $ namedParams , $ classParams ) { if ( ! class_exists ( $ class ) ) { throw new \ InvalidArgumentException ( "Class $class does not exist." ) ; } $ object = new $ class ( ) ; return $ this -> invokeObjectMethod ( $ object , $ method , $ namedParams , $ classParams ) ; }
Invokes a method on a class, by creating an instance of the class and
then invoking the method.
Invokes a method on a class by creating an instance of the class and then invoking the method .