Skip to content

Commit

Permalink
Compatibility for ibexa >= 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Giesenow committed Oct 9, 2023
1 parent c3c0cba commit b551ebb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"require": {
"php": ">=8.1",
"ibexa/oss": "^3.3",
"ibexa/oss": "^4.5",
"ext-dom": "*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/FieldHelper/ImageFieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use eZ\Publish\Core\FieldType\RelationList\Value as RelationValue;
use eZ\Publish\Core\MVC\ConfigResolverInterface;
use eZ\Publish\SPI\Variation\VariationHandler;
use EzSystems\PlatformHttpCacheBundle\ResponseTagger\ResponseTagger;
use Ibexa\Contracts\HttpCache\ResponseTagger\ResponseTagger;
use eZ\Publish\Core\FieldType\Image\Value as ImageValue;
use eZ\Publish\Core\FieldType\ImageAsset\Value as ImageAssetValue;

Expand Down
2 changes: 1 addition & 1 deletion src/FieldHelper/RelationFieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use eZ\Publish\API\Repository\Values\Content\ContentStruct;
use eZ\Publish\Core\FieldType\Relation\Value as RelationValue;
use eZ\Publish\Core\FieldType\RelationList\Value as RelationListValue;
use EzSystems\PlatformHttpCacheBundle\ResponseTagger\ResponseTagger;
use Ibexa\Contracts\HttpCache\ResponseTagger\ResponseTagger;
use Psr\Log\LoggerInterface;

/**
Expand Down
5 changes: 2 additions & 3 deletions tests/FieldHelper/ImageFieldHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
use eZ\Publish\Core\Base\Exceptions\NotFoundException;
use eZ\Publish\Core\FieldType\Float\Value as FloatValue;
use eZ\Publish\Core\FieldType\Image\Value;
use eZ\Publish\Core\MVC\ConfigResolverInterface;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use eZ\Publish\Core\Repository\Values\Content\Content;
use eZ\Publish\Core\Repository\Values\Content\VersionInfo;
use eZ\Publish\Core\Repository\Values\ContentType\ContentType;
use eZ\Publish\SPI\Variation\VariationHandler;
use EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Value as RichtextValue;
use EzSystems\PlatformHttpCacheBundle\ResponseTagger\ResponseTagger;
use Ibexa\Contracts\HttpCache\ResponseTagger\ResponseTagger;
use PHPUnit\Framework\TestCase;

/**
Expand Down
7 changes: 2 additions & 5 deletions tests/FieldHelper/RelationFieldHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,20 @@
use Elbformat\FieldHelperBundle\Exception\FieldNotFoundException;
use Elbformat\FieldHelperBundle\Exception\InvalidFieldTypeException;
use Elbformat\FieldHelperBundle\FieldHelper\RelationFieldHelper;
use Elbformat\FieldHelperBundle\FieldHelper\TextFieldHelper;
use eZ\Publish\API\Repository\ContentService;
use eZ\Publish\API\Repository\Repository;
use eZ\Publish\API\Repository\Values\Content\ContentInfo;
use eZ\Publish\API\Repository\Values\Content\Field;
use eZ\Publish\Core\Base\Exceptions\NotFoundException;
use eZ\Publish\Core\FieldType\Float\Value as FloatValue;
use eZ\Publish\Core\FieldType\Relation\Value as RelationValue;
use eZ\Publish\Core\FieldType\RelationList\Value as RelationListValue;
use eZ\Publish\Core\FieldType\Float\Value as FloatValue;
use eZ\Publish\Core\FieldType\TextBlock\Value as TextBlockValue;
use eZ\Publish\Core\FieldType\TextLine\Value as TextLineValue;
use eZ\Publish\Core\FieldType\Value;
use eZ\Publish\Core\Repository\Values\Content\Content;
use eZ\Publish\Core\Repository\Values\Content\ContentCreateStruct;
use eZ\Publish\Core\Repository\Values\Content\ContentUpdateStruct;
use eZ\Publish\Core\Repository\Values\Content\VersionInfo;
use EzSystems\PlatformHttpCacheBundle\ResponseTagger\ResponseTagger;
use Ibexa\Contracts\HttpCache\ResponseTagger\ResponseTagger;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;

Expand Down
4 changes: 2 additions & 2 deletions tests/FieldHelper/RichtextFieldHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use eZ\Publish\Core\Helper\FieldHelper;
use eZ\Publish\Core\Repository\Values\Content\Content;
use eZ\Publish\Core\Repository\Values\Content\ContentUpdateStruct;
use EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Value as RichTextValue;
use EzSystems\EzPlatformRichText\eZ\RichText\Converter;
use Ibexa\FieldTypeRichText\FieldType\RichText\Value as RichTextValue;
use Ibexa\Contracts\FieldTypeRichText\RichText\Converter;
use PHPUnit\Framework\TestCase;

/**
Expand Down

0 comments on commit b551ebb

Please sign in to comment.