src/S3Control/S3ControlEndpointMiddleware.php
public static function wrap($region, array $options)
    {
        return function (callable $handler) use ($region, $options) {
            return new self($handler, $region, $options);
        };
    }
public static function wrap($region, array $options)
    {
        return function (callable $handler) use ($region, $options) {
            return new self($handler, $region, $options);
        };
    }
public static function wrap ( $ region , array $ options ) { return function ( callable $ handler ) use ( $ region , $ options ) { return new self ( $ handler , $ region , $ options ) ; } ; }
Create a middleware wrapper function

@param string $region
@param array  $options

@return callable
Create a middleware wrapper function