src/Dispatcher/ClosureAutoBind.php
private function getFunctionArgumentsNames($closure) : array
    {
        $result = [];

        $closureReflection = new ReflectionFunction($closure);

        foreach ($closureReflection->getParameters() as $param) {
            $result[] = $param->name;
        }

        return $result;
    }
private function getFunctionArgumentsNames($closure) : array
    {
        $result = [];

        $closureReflection = new ReflectionFunction($closure);

        foreach ($closureReflection->getParameters() as $param) {
            $result[] = $param->name;
        }

        return $result;
    }
private function getFunctionArgumentsNames ( $ closure ) : array { $ result = [ ] ; $ closureReflection = new ReflectionFunction ( $ closure ) ; foreach ( $ closureReflection -> getParameters ( ) as $ param ) { $ result [ ] = $ param -> name ; } return $ result ; }
Get name of parameters for provided closure

@param \Closure $closure

@return array
Get name of parameters for provided closure