Loading inc/class-s3-uploads-stream-wrapper.php +9 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,17 @@ class S3_Uploads_Stream_Wrapper extends Aws\S3\StreamWrapper { protected static $s3_uploads; public function __construct() { static::$client = static::$s3_uploads->s3(); } /** * Register the 's3://' stream wrapper * * @param S3Client $client Client to use with the stream wrapper */ public static function register_streamwrapper( $s3_uploads ) { public static function register_streamwrapper( $s3_uploads ) { static::$s3_uploads = $s3_uploads; if ( in_array( 's3', stream_get_wrappers() ) ) { Loading Loading @@ -171,8 +175,4 @@ class S3_Uploads_Stream_Wrapper extends Aws\S3\StreamWrapper { public function stream_metadata( $path, $option, $value ) { // not implemented } public function __construct() { static::$client = static::$s3_uploads->s3(); } } Loading
inc/class-s3-uploads-stream-wrapper.php +9 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,17 @@ class S3_Uploads_Stream_Wrapper extends Aws\S3\StreamWrapper { protected static $s3_uploads; public function __construct() { static::$client = static::$s3_uploads->s3(); } /** * Register the 's3://' stream wrapper * * @param S3Client $client Client to use with the stream wrapper */ public static function register_streamwrapper( $s3_uploads ) { public static function register_streamwrapper( $s3_uploads ) { static::$s3_uploads = $s3_uploads; if ( in_array( 's3', stream_get_wrappers() ) ) { Loading Loading @@ -171,8 +175,4 @@ class S3_Uploads_Stream_Wrapper extends Aws\S3\StreamWrapper { public function stream_metadata( $path, $option, $value ) { // not implemented } public function __construct() { static::$client = static::$s3_uploads->s3(); } }