Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 891a5dd

Browse files
author
Bertrand Dunogier
committed
EZP-23441: More legacy uri handling
XML parsing from imageStorage has been moved to the LegacyStorage image gateway, and the legacy url redecorator injected to this service. No manual stripping/adding / to uris manually.
1 parent be779f4 commit 891a5dd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Tests/FieldType/ImageIntegrationTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,16 @@ public function getCustomHandler()
7777
$fieldType = new FieldType\Image\Type();
7878
$fieldType->setTransformationProcessor( $this->getTransformationProcessor() );
7979

80+
$urlRedecorator = self::$container->get( "ezpublish.core.io.image_fieldtype.legacy_url_redecorator" );
81+
8082
$ioService = self::$container->get( "ezpublish.fieldType.ezimage.io_service" );
8183
return $this->getHandler(
8284
'ezimage',
8385
$fieldType,
84-
new Legacy\Content\FieldValue\Converter\Image( $ioService ),
86+
new Legacy\Content\FieldValue\Converter\Image( $ioService, $urlRedecorator ),
8587
new FieldType\Image\ImageStorage(
8688
array(
87-
'LegacyStorage' => new FieldType\Image\ImageStorage\Gateway\LegacyStorage(),
89+
'LegacyStorage' => new FieldType\Image\ImageStorage\Gateway\LegacyStorage( $urlRedecorator ),
8890
),
8991
$ioService,
9092
new FieldType\Image\PathGenerator\LegacyPathGenerator(),

0 commit comments

Comments
 (0)