protected function invoke($object, $method, array $args, $errorname = null)
    {
        try {
            return call_user_func_array([$object, $method], $args);
        } catch (\Exception $e) {
            $errorname = $errorname ?: $method;
            $this->triggerError($errorname, $e);
        }

        return false;
    }
protected function invoke($object, $method, array $args, $errorname = null)
    {
        try {
            return call_user_func_array([$object, $method], $args);
        } catch (\Exception $e) {
            $errorname = $errorname ?: $method;
            $this->triggerError($errorname, $e);
        }

        return false;
    }
protected function invoke ( $ object , $ method , array $ args , $ errorname = null ) { try { return call_user_func_array ( [ $ object , $ method ] , $ args ) ; } catch ( \ Exception $ e ) { $ errorname = $ errorname ? : $ method ; $ this -> triggerError ( $ errorname , $ e ) ; } return false ; }
Calls a method on an object, catching any exceptions.

@param object      $object    The object to call the method on.
@param string      $method    The method name.
@param array       $args      The arguments to the method.
@param string|null $errorname The name of the calling function.

@return mixed|false The return value of the call, or false on failure.
Calls a method on an object catching any exceptions .