1010use Aws \Exception \AwsException ;
1111use Aws \S3 \S3Client ;
1212use WP2Static \CrawledFiles ;
13+ use WP2Static \DeployCache ;
1314use WP2Static \Options ;
1415use WP2Static \WsLog ;
1516
@@ -159,7 +160,7 @@ public function uploadFilesIter( \Iterator $files ): void {
159160
160161 if ( ! $ real_filepath ) {
161162 $ err = 'Trying to deploy unknown file to S3: ' . $ filename ;
162- \ WP2Static \ WsLog::l ( $ err );
163+ WsLog::l ( $ err );
163164 continue ;
164165 }
165166
@@ -228,7 +229,7 @@ public function uploadFilesIter( \Iterator $files ): void {
228229 }
229230 }
230231
231- $ is_cached = \ WP2Static \ DeployCache::fileisCached (
232+ $ is_cached = DeployCache::fileisCached (
232233 $ cache_key ,
233234 $ this ->namespace ,
234235 $ hash ,
@@ -266,7 +267,7 @@ public function uploadFilesIter( \Iterator $files ): void {
266267 'fulfilled ' =>
267268 function ( $ result , $ iter_key , $ promise ) use ( &$ items_by_iter_key ) {
268269 $ item = $ items_by_iter_key [ $ iter_key ];
269- \ WP2Static \ DeployCache::addFile (
270+ DeployCache::addFile (
270271 $ item ['cache_key ' ],
271272 $ this ->namespace ,
272273 $ item ['hash ' ]
@@ -331,7 +332,7 @@ public static function s3Client(): \Aws\S3\S3Client {
331332 ) {
332333 $ client_options ['credentials ' ] = [
333334 'key ' => S3Options::getValue ( 'awsAccessKeyId ' ),
334- 'secret ' => \ WP2Static \ Options::encrypt_decrypt (
335+ 'secret ' => Options::encrypt_decrypt (
335336 'decrypt ' ,
336337 S3Options::getValue ( 'awsSecretAccessKey ' )
337338 ),
@@ -358,7 +359,7 @@ public static function cloudfrontClient(): \Aws\CloudFront\CloudFrontClient {
358359 // Use the supplied access keys.
359360 $ credentials = new \Aws \Credentials \Credentials (
360361 S3Options::getValue ( 'awsAccessKeyId ' ),
361- \ WP2Static \ Options::encrypt_decrypt (
362+ Options::encrypt_decrypt (
362363 'decrypt ' ,
363364 S3Options::getValue ( 'awsSecretAccessKey ' )
364365 )
0 commit comments