@@ -64,7 +64,7 @@ class TLI1ImporterCommand extends AbstractBaseCommand
64
64
65
65
66
66
public function __construct (
67
- array $ arrConfig , protected ProjectDir $ projectDir , protected Factory $ Factory ,
67
+ array $ arrConfig , protected ProjectDir $ projectDir , protected Factory $ factory ,
68
68
protected TextProcessor $ textProcessor , protected HtmlProcessorForStorage $ htmlProcessor ,
69
69
70
70
protected EntityManagerInterface $ em ,
@@ -497,7 +497,7 @@ protected function importImages() : static
497
497
$ this ->processItems ($ arrTli1Images , [$ this , 'processTli1Image ' ], null , [$ this , 'buildItemTitle ' ]);
498
498
499
499
$ this
500
- ->fxTitle ("Assigning the cover image to each article... " )
500
+ ->fxTitle ("Assigning the spotlight to each article... " )
501
501
->processItems ($ this ->arrNewArticles , [$ this , 'assignSpotlight ' ], null , function (){ return '' ;} );
502
502
503
503
return $ this ;
@@ -527,6 +527,8 @@ protected function processTli1Image(int $imageId, array $arrImage)
527
527
->setTitle ($ title )
528
528
->setFormat ($ format )
529
529
->setWatermarkPosition ($ watermark )
530
+ // unique hash wasn't implemented in TLI1 -> real hashing would violate it
531
+ ->setHash ("tli1-import_ " . $ imageId )
530
532
->setCreatedAt ($ createdAt )
531
533
->setUpdatedAt ($ createdAt );
532
534
@@ -576,7 +578,7 @@ protected function processTli1Image(int $imageId, array $arrImage)
576
578
$ this ->arrNewImages [$ imageId ] = $ entityTli2Image ;
577
579
578
580
// file copy
579
- $ imageService = $ this ->Factory ->createImage ($ entityTli2Image );
581
+ $ imageService = $ this ->factory ->createImage ($ entityTli2Image );
580
582
$ filename = $ imageService ->getOriginalFileName ();
581
583
$ sourceFilePath = $ this ->projectDir ->getVarDirFromFilePath ("uploaded-assets-downloaded-from-remote/images/ $ filename " );
582
584
$ destFilePath = $ imageService ->getOriginalFilePath ();
@@ -908,7 +910,7 @@ protected function processTli1File(int $fileId, array $arrFile)
908
910
$ this ->arrNewFiles [$ fileId ] = $ entityTli2File ;
909
911
910
912
911
- $ fileService = $ this ->Factory ->createFile ($ entityTli2File );
913
+ $ fileService = $ this ->factory ->createFile ($ entityTli2File );
912
914
if ( !$ fileService ->isLocal () ) {
913
915
return $ this ;
914
916
}
0 commit comments