src/Support/Utils.php
public static function constructResolver(string $className, string $methodName): Closure
    {
        if (! method_exists($className, $methodName)) {
            throw new DefinitionException("Method '{$methodName}' does not exist on class '{$className}'");
        }

        return Closure::fromCallable([app($className), $methodName]);
    }
public static function constructResolver(string $className, string $methodName): Closure
    {
        if (! method_exists($className, $methodName)) {
            throw new DefinitionException("Method '{$methodName}' does not exist on class '{$className}'");
        }

        return Closure::fromCallable([app($className), $methodName]);
    }
public static function constructResolver ( string $ className , string $ methodName ) : Closure { if ( ! method_exists ( $ className , $ methodName ) ) { throw new DefinitionException ( "Method '{$methodName}' does not exist on class '{$className}'" ) ; } return Closure :: fromCallable ( [ app ( $ className ) , $ methodName ] ) ; }
Construct a closure that passes through the arguments.

@param  string  $className This class is resolved through the container.
@param  string  $methodName The method that gets passed the arguments of the closure.
@return \Closure

@throws \Nuwave\Lighthouse\Exceptions\DefinitionException
Construct a closure that passes through the arguments .