diff --git a/inc/class-wp-cli-command.php b/inc/class-wp-cli-command.php index 95692f4f..81962a68 100644 --- a/inc/class-wp-cli-command.php +++ b/inc/class-wp-cli-command.php @@ -2,6 +2,7 @@ namespace S3_Uploads; +use Aws\Command; use Aws\S3\Transfer; use Exception; use WP_CLI; @@ -206,7 +207,7 @@ public function upload_directory( array $args, array $args_assoc ) { $transfer_args = [ 'concurrency' => $args_assoc['concurrency'], 'debug' => (bool) $args_assoc['verbose'], - 'before' => function ( AWS\Command $command ) { + 'before' => function ( Command $command ) { if ( in_array( $command->getName(), [ 'PutObject', 'CreateMultipartUpload' ], true ) ) { $acl = defined( 'S3_UPLOADS_OBJECT_ACL' ) ? S3_UPLOADS_OBJECT_ACL : 'public-read'; $command['ACL'] = $acl;