public function invoke($object, $method, array $arguments = [])
    {
        $reflection = new \ReflectionClass($object);
        $method = $reflection->getMethod($method);
        $args = $this->resolveArguments($method, $arguments);

        return $method->invokeArgs($object, $args);
    }
public function invoke($object, $method, array $arguments = [])
    {
        $reflection = new \ReflectionClass($object);
        $method = $reflection->getMethod($method);
        $args = $this->resolveArguments($method, $arguments);

        return $method->invokeArgs($object, $args);
    }
public function invoke ( $ object , $ method , array $ arguments = [ ] ) { $ reflection = new \ ReflectionClass ( $ object ) ; $ method = $ reflection -> getMethod ( $ method ) ; $ args = $ this -> resolveArguments ( $ method , $ arguments ) ; return $ method -> invokeArgs ( $ object , $ args ) ; }
Invoke method of object.

@param mixed $object
@param string $method
@param array $arguments
@return mixed
Invoke method of object .