diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6ec60e1669d..5846a9a0887 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5241,11 +5241,6 @@ parameters: count: 1 path: src/Storefront/Event/CartMergedSubscriber.php - - - message: "#^Parameter \\#1 \\$mimeType of class Shopware\\\\Storefront\\\\Framework\\\\Media\\\\Exception\\\\FileTypeNotAllowedException constructor expects string, string\\|null given\\.$#" - count: 1 - path: src/Storefront/Framework/Media/Validator/StorefrontMediaDocumentValidator.php - - message: "#^Property Shopware\\\\Storefront\\\\Framework\\\\Twig\\\\Extension\\\\IconCacheTwigFilter\\:\\:\\$iconCache type has no value type specified in iterable type array\\.$#" count: 1 diff --git a/src/Core/Content/Media/Infrastructure/Command/UpdatePathCommand.php b/src/Core/Content/Media/Infrastructure/Command/UpdatePathCommand.php index 7823dcef705..8d13d372523 100644 --- a/src/Core/Content/Media/Infrastructure/Command/UpdatePathCommand.php +++ b/src/Core/Content/Media/Infrastructure/Command/UpdatePathCommand.php @@ -18,7 +18,7 @@ name: 'media:update-path', description: 'Iterates over the media and updates the path column.', )] -#[Package('content')] +#[Package('buyers-experience')] class UpdatePathCommand extends Command { /** diff --git a/src/Core/Content/Media/Infrastructure/Path/MediaUrlGenerator.php b/src/Core/Content/Media/Infrastructure/Path/MediaUrlGenerator.php index ab086f9398a..f07b3b44d9c 100644 --- a/src/Core/Content/Media/Infrastructure/Path/MediaUrlGenerator.php +++ b/src/Core/Content/Media/Infrastructure/Path/MediaUrlGenerator.php @@ -9,7 +9,7 @@ /** * @internal Concrete implementations of this class should not be extended or used as a base class/type hint. */ -#[Package('content')] +#[Package('buyers-experience')] class MediaUrlGenerator extends AbstractMediaUrlGenerator { public function __construct(private readonly FilesystemOperator $filesystem) diff --git a/src/Core/Content/Media/Infrastructure/Path/SqlMediaLocationBuilder.php b/src/Core/Content/Media/Infrastructure/Path/SqlMediaLocationBuilder.php index b49999c053e..270849a6505 100644 --- a/src/Core/Content/Media/Infrastructure/Path/SqlMediaLocationBuilder.php +++ b/src/Core/Content/Media/Infrastructure/Path/SqlMediaLocationBuilder.php @@ -18,7 +18,7 @@ * * @codeCoverageIgnore (see \Shopware\Tests\Integration\Core\Content\Media\Infrastructure\Path\MediaLocationBuilderTest) */ -#[Package('content')] +#[Package('buyers-experience')] class SqlMediaLocationBuilder implements MediaLocationBuilder { /** diff --git a/src/Core/Content/Product/SalesChannel/Review/Event/ReviewFormEvent.php b/src/Core/Content/Product/SalesChannel/Review/Event/ReviewFormEvent.php index f9a09740b7d..06f2d4e46a8 100644 --- a/src/Core/Content/Product/SalesChannel/Review/Event/ReviewFormEvent.php +++ b/src/Core/Content/Product/SalesChannel/Review/Event/ReviewFormEvent.php @@ -19,7 +19,7 @@ use Shopware\Core\Framework\Validation\DataBag\DataBag; use Symfony\Contracts\EventDispatcher\Event; -#[Package('content')] +#[Package('buyers-experience')] final class ReviewFormEvent extends Event implements SalesChannelAware, MailAware, ProductAware, CustomerAware, ScalarValuesAware, FlowEventAware { public const EVENT_NAME = 'review_form.send'; diff --git a/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockCollection.php b/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockCollection.php index 37a33fda4e9..f2f470e5c7c 100644 --- a/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockCollection.php +++ b/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockCollection.php @@ -10,7 +10,7 @@ * * @extends EntityCollection */ -#[Package('content')] +#[Package('buyers-experience')] class AppCmsBlockCollection extends EntityCollection { protected function getExpectedClass(): string diff --git a/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockDefinition.php b/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockDefinition.php index 5ce8a9afe9e..2ec1e679886 100644 --- a/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockDefinition.php +++ b/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockDefinition.php @@ -22,7 +22,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class AppCmsBlockDefinition extends EntityDefinition { final public const ENTITY_NAME = 'app_cms_block'; diff --git a/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockEntity.php b/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockEntity.php index ae38cfdfeec..4f17ce38a80 100644 --- a/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockEntity.php +++ b/src/Core/Framework/App/Aggregate/CmsBlock/AppCmsBlockEntity.php @@ -14,7 +14,7 @@ * * @phpstan-import-type BlockArray from Block */ -#[Package('content')] +#[Package('buyers-experience')] class AppCmsBlockEntity extends Entity { use EntityIdTrait; diff --git a/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationCollection.php b/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationCollection.php index 73cc88b78e4..75b5f7d0a7d 100644 --- a/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationCollection.php +++ b/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationCollection.php @@ -10,7 +10,7 @@ * * @extends EntityCollection */ -#[Package('content')] +#[Package('buyers-experience')] class AppCmsBlockTranslationCollection extends EntityCollection { protected function getExpectedClass(): string diff --git a/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationDefinition.php b/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationDefinition.php index 452465de5ce..ff3d23aced5 100644 --- a/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationDefinition.php +++ b/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationDefinition.php @@ -12,7 +12,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class AppCmsBlockTranslationDefinition extends EntityTranslationDefinition { final public const ENTITY_NAME = 'app_cms_block_translation'; diff --git a/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationEntity.php b/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationEntity.php index fe7499a6981..e596c6e8a44 100644 --- a/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationEntity.php +++ b/src/Core/Framework/App/Aggregate/CmsBlockTranslation/AppCmsBlockTranslationEntity.php @@ -11,7 +11,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class AppCmsBlockTranslationEntity extends Entity { use EntityIdTrait; diff --git a/src/Core/Framework/App/Cms/AbstractBlockTemplateLoader.php b/src/Core/Framework/App/Cms/AbstractBlockTemplateLoader.php index a068279c011..8a7ec336aae 100644 --- a/src/Core/Framework/App/Cms/AbstractBlockTemplateLoader.php +++ b/src/Core/Framework/App/Cms/AbstractBlockTemplateLoader.php @@ -7,7 +7,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] abstract class AbstractBlockTemplateLoader { abstract public function getTemplateForBlock(CmsExtensions $cmsExtensions, string $blockName): string; diff --git a/src/Core/Framework/App/Cms/BlockTemplateLoader.php b/src/Core/Framework/App/Cms/BlockTemplateLoader.php index 7dd1bae7918..b5e388ba820 100644 --- a/src/Core/Framework/App/Cms/BlockTemplateLoader.php +++ b/src/Core/Framework/App/Cms/BlockTemplateLoader.php @@ -9,7 +9,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class BlockTemplateLoader extends AbstractBlockTemplateLoader { public function getTemplateForBlock(CmsExtensions $cmsExtensions, string $blockName): string diff --git a/src/Core/Framework/App/Cms/CmsExtensions.php b/src/Core/Framework/App/Cms/CmsExtensions.php index e92269f915b..9bc1feb37ae 100644 --- a/src/Core/Framework/App/Cms/CmsExtensions.php +++ b/src/Core/Framework/App/Cms/CmsExtensions.php @@ -10,7 +10,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class CmsExtensions { private const XSD_FILE = __DIR__ . '/Schema/cms-1.0.xsd'; diff --git a/src/Core/Framework/App/Cms/Xml/Block.php b/src/Core/Framework/App/Cms/Xml/Block.php index ae3fccb8b56..8a6b4c095a2 100644 --- a/src/Core/Framework/App/Cms/Xml/Block.php +++ b/src/Core/Framework/App/Cms/Xml/Block.php @@ -28,7 +28,7 @@ * }> * } */ -#[Package('content')] +#[Package('buyers-experience')] class Block extends XmlElement { private const TRANSLATABLE_FIELDS = [ diff --git a/src/Core/Framework/App/Cms/Xml/Blocks.php b/src/Core/Framework/App/Cms/Xml/Blocks.php index 464fafb7469..c6a2a6c7f97 100644 --- a/src/Core/Framework/App/Cms/Xml/Blocks.php +++ b/src/Core/Framework/App/Cms/Xml/Blocks.php @@ -8,7 +8,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class Blocks extends XmlElement { /** diff --git a/src/Core/Framework/App/Cms/Xml/Config.php b/src/Core/Framework/App/Cms/Xml/Config.php index d3ab7dab73a..0c105f48dff 100644 --- a/src/Core/Framework/App/Cms/Xml/Config.php +++ b/src/Core/Framework/App/Cms/Xml/Config.php @@ -11,7 +11,7 @@ * * @phpstan-type ConfigArray array */ -#[Package('content')] +#[Package('buyers-experience')] class Config extends XmlElement { /** diff --git a/src/Core/Framework/App/Cms/Xml/DefaultConfig.php b/src/Core/Framework/App/Cms/Xml/DefaultConfig.php index 2523ea5e20c..df7e014c91d 100644 --- a/src/Core/Framework/App/Cms/Xml/DefaultConfig.php +++ b/src/Core/Framework/App/Cms/Xml/DefaultConfig.php @@ -9,7 +9,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class DefaultConfig extends XmlElement { protected ?string $marginTop = null; diff --git a/src/Core/Framework/App/Cms/Xml/Slot.php b/src/Core/Framework/App/Cms/Xml/Slot.php index 80f1326ea8f..7688d28e917 100644 --- a/src/Core/Framework/App/Cms/Xml/Slot.php +++ b/src/Core/Framework/App/Cms/Xml/Slot.php @@ -8,7 +8,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class Slot extends XmlElement { protected string $name; diff --git a/src/Core/Migration/V6_5/Migration1659425718AddFlagsToCustomEntities.php b/src/Core/Migration/V6_5/Migration1659425718AddFlagsToCustomEntities.php index e836f015365..59c0f8762b1 100644 --- a/src/Core/Migration/V6_5/Migration1659425718AddFlagsToCustomEntities.php +++ b/src/Core/Migration/V6_5/Migration1659425718AddFlagsToCustomEntities.php @@ -9,7 +9,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class Migration1659425718AddFlagsToCustomEntities extends MigrationStep { public function getCreationTimestamp(): int diff --git a/src/Core/Migration/V6_5/Migration1662533751AddCustomEntityTypeIdToCategory.php b/src/Core/Migration/V6_5/Migration1662533751AddCustomEntityTypeIdToCategory.php index 958c703b992..cbf562d7342 100644 --- a/src/Core/Migration/V6_5/Migration1662533751AddCustomEntityTypeIdToCategory.php +++ b/src/Core/Migration/V6_5/Migration1662533751AddCustomEntityTypeIdToCategory.php @@ -9,7 +9,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class Migration1662533751AddCustomEntityTypeIdToCategory extends MigrationStep { public function getCreationTimestamp(): int diff --git a/src/Core/Migration/V6_5/Migration1666689977AddPluginIdToCustomEntity.php b/src/Core/Migration/V6_5/Migration1666689977AddPluginIdToCustomEntity.php index 7a7e73bb51d..585251f9298 100644 --- a/src/Core/Migration/V6_5/Migration1666689977AddPluginIdToCustomEntity.php +++ b/src/Core/Migration/V6_5/Migration1666689977AddPluginIdToCustomEntity.php @@ -9,7 +9,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class Migration1666689977AddPluginIdToCustomEntity extends MigrationStep { public function getCreationTimestamp(): int diff --git a/src/Core/Migration/V6_5/Migration1695732009AddConfigForMedia.php b/src/Core/Migration/V6_5/Migration1695732009AddConfigForMedia.php index cf45ee6b448..3dd86c24d00 100644 --- a/src/Core/Migration/V6_5/Migration1695732009AddConfigForMedia.php +++ b/src/Core/Migration/V6_5/Migration1695732009AddConfigForMedia.php @@ -9,7 +9,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class Migration1695732009AddConfigForMedia extends MigrationStep { public function getCreationTimestamp(): int diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchema.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchema.php index a9960c4338d..b35d7a2d466 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchema.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchema.php @@ -10,7 +10,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class AdminUiXmlSchema { public const FILENAME = 'admin-ui.xml'; diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchemaValidator.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchemaValidator.php index f1cfc51b394..73c87dd1713 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchemaValidator.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/AdminUiXmlSchemaValidator.php @@ -14,7 +14,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class AdminUiXmlSchemaValidator { public function validateConfigurations(AdminUiEntity $adminUiEntity, Entity $entity): void diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/AdminUi.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/AdminUi.php index f8f43148eba..bf5614f8fb7 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/AdminUi.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/AdminUi.php @@ -12,7 +12,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class AdminUi extends ConfigXmlElement { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Card.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Card.php index 808c15b660b..93b3d2db20d 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Card.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Card.php @@ -13,7 +13,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Card extends ConfigXmlElement { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/CardField.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/CardField.php index 9ee91f2f7d5..aecbf86a3d4 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/CardField.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/CardField.php @@ -13,7 +13,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class CardField extends ConfigXmlElement { protected string $ref; diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Column.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Column.php index c749ddc36b3..6e2f3d97037 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Column.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Column.php @@ -13,7 +13,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Column extends ConfigXmlElement { protected string $ref; diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Columns.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Columns.php index ec5ee9b6904..46e937da21e 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Columns.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Columns.php @@ -12,7 +12,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Columns extends ConfigXmlElement { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Detail.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Detail.php index e7d5500ff8a..c034d2ce518 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Detail.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Detail.php @@ -12,7 +12,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Detail extends ConfigXmlElement { protected Tabs $tabs; diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Entity.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Entity.php index 5fe189a4b47..15fbfb57252 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Entity.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Entity.php @@ -13,7 +13,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Entity extends ConfigXmlElement { protected Listing $listing; diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Listing.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Listing.php index e1e470adee5..c4c76e177b6 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Listing.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Listing.php @@ -12,7 +12,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Listing extends ConfigXmlElement { protected Columns $columns; diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tab.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tab.php index e2d8224235c..c1742880473 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tab.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tab.php @@ -13,7 +13,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Tab extends ConfigXmlElement { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tabs.php b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tabs.php index 91b30cd2f95..443d3a5e18c 100644 --- a/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tabs.php +++ b/src/Core/System/CustomEntity/Xml/Config/AdminUi/XmlElements/Tabs.php @@ -12,7 +12,7 @@ * * @internal */ -#[Package('content')] +#[Package('buyers-experience')] final class Tabs extends ConfigXmlElement { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/CmsAware/CmsAwareFields.php b/src/Core/System/CustomEntity/Xml/Config/CmsAware/CmsAwareFields.php index c7d3a9627aa..9c9ca4c6f82 100644 --- a/src/Core/System/CustomEntity/Xml/Config/CmsAware/CmsAwareFields.php +++ b/src/Core/System/CustomEntity/Xml/Config/CmsAware/CmsAwareFields.php @@ -13,7 +13,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class CmsAwareFields { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/ConfigXmlElement.php b/src/Core/System/CustomEntity/Xml/Config/ConfigXmlElement.php index 2edb8a49f69..9fa7482b50f 100644 --- a/src/Core/System/CustomEntity/Xml/Config/ConfigXmlElement.php +++ b/src/Core/System/CustomEntity/Xml/Config/ConfigXmlElement.php @@ -8,7 +8,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] abstract class ConfigXmlElement extends XmlElement { /** diff --git a/src/Core/System/CustomEntity/Xml/Config/CustomEntityConfigurationException.php b/src/Core/System/CustomEntity/Xml/Config/CustomEntityConfigurationException.php index 6d9abdbd90a..2dcaf99c274 100644 --- a/src/Core/System/CustomEntity/Xml/Config/CustomEntityConfigurationException.php +++ b/src/Core/System/CustomEntity/Xml/Config/CustomEntityConfigurationException.php @@ -6,7 +6,7 @@ use Shopware\Core\Framework\Log\Package; use Symfony\Component\HttpFoundation\Response; -#[Package('content')] +#[Package('buyers-experience')] class CustomEntityConfigurationException extends HttpException { final public const ENTITY_NOT_GIVEN_CODE = 'CUSTOM_ENTITY_NOT_GIVEN'; diff --git a/src/Core/System/CustomEntity/Xml/Config/CustomEntityEnrichmentService.php b/src/Core/System/CustomEntity/Xml/Config/CustomEntityEnrichmentService.php index 28812ecfd34..92789c384c0 100644 --- a/src/Core/System/CustomEntity/Xml/Config/CustomEntityEnrichmentService.php +++ b/src/Core/System/CustomEntity/Xml/Config/CustomEntityEnrichmentService.php @@ -11,7 +11,7 @@ /** * @internal */ -#[Package('content')] +#[Package('buyers-experience')] class CustomEntityEnrichmentService { public function __construct(private readonly AdminUiXmlSchemaValidator $adminUiXmlSchemaValidator) diff --git a/src/Storefront/Framework/Media/Exception/FileTypeNotAllowedException.php b/src/Storefront/Framework/Media/Exception/FileTypeNotAllowedException.php index 248504b072f..36c6164fe0a 100644 --- a/src/Storefront/Framework/Media/Exception/FileTypeNotAllowedException.php +++ b/src/Storefront/Framework/Media/Exception/FileTypeNotAllowedException.php @@ -5,7 +5,7 @@ use Shopware\Core\Framework\Log\Package; use Shopware\Core\Framework\ShopwareHttpException; -#[Package('content')] +#[Package('buyers-experience')] class FileTypeNotAllowedException extends ShopwareHttpException { public function __construct( diff --git a/src/Storefront/Framework/Media/Exception/MediaValidatorMissingException.php b/src/Storefront/Framework/Media/Exception/MediaValidatorMissingException.php index a8aa595831f..aa219fffd07 100644 --- a/src/Storefront/Framework/Media/Exception/MediaValidatorMissingException.php +++ b/src/Storefront/Framework/Media/Exception/MediaValidatorMissingException.php @@ -6,7 +6,7 @@ use Shopware\Core\Framework\Log\Package; use Shopware\Core\Framework\ShopwareHttpException; -#[Package('content')] +#[Package('buyers-experience')] class MediaValidatorMissingException extends ShopwareHttpException { public function __construct(string $type) diff --git a/src/Storefront/Framework/Media/StorefrontMediaUploader.php b/src/Storefront/Framework/Media/StorefrontMediaUploader.php index 9c9b2566a92..e50680a7f13 100644 --- a/src/Storefront/Framework/Media/StorefrontMediaUploader.php +++ b/src/Storefront/Framework/Media/StorefrontMediaUploader.php @@ -12,7 +12,7 @@ use Shopware\Storefront\Framework\Media\Exception\FileTypeNotAllowedException; use Symfony\Component\HttpFoundation\File\UploadedFile; -#[Package('content')] +#[Package('buyers-experience')] class StorefrontMediaUploader { /** diff --git a/src/Storefront/Framework/Media/StorefrontMediaValidatorInterface.php b/src/Storefront/Framework/Media/StorefrontMediaValidatorInterface.php index 2cd6ff0e778..085afd77dc5 100644 --- a/src/Storefront/Framework/Media/StorefrontMediaValidatorInterface.php +++ b/src/Storefront/Framework/Media/StorefrontMediaValidatorInterface.php @@ -5,7 +5,7 @@ use Shopware\Core\Framework\Log\Package; use Symfony\Component\HttpFoundation\File\UploadedFile; -#[Package('content')] +#[Package('buyers-experience')] interface StorefrontMediaValidatorInterface { /** diff --git a/src/Storefront/Framework/Media/StorefrontMediaValidatorRegistry.php b/src/Storefront/Framework/Media/StorefrontMediaValidatorRegistry.php index 37dd4ab97a8..d0c42cc78d4 100644 --- a/src/Storefront/Framework/Media/StorefrontMediaValidatorRegistry.php +++ b/src/Storefront/Framework/Media/StorefrontMediaValidatorRegistry.php @@ -6,7 +6,7 @@ use Shopware\Storefront\Framework\Media\Exception\MediaValidatorMissingException; use Symfony\Component\HttpFoundation\File\UploadedFile; -#[Package('content')] +#[Package('buyers-experience')] class StorefrontMediaValidatorRegistry { /** diff --git a/src/Storefront/Framework/Media/Validator/MimeTypeValidationTrait.php b/src/Storefront/Framework/Media/Validator/MimeTypeValidationTrait.php index 936e0f6a7d9..f867529ad3e 100644 --- a/src/Storefront/Framework/Media/Validator/MimeTypeValidationTrait.php +++ b/src/Storefront/Framework/Media/Validator/MimeTypeValidationTrait.php @@ -5,7 +5,7 @@ use Shopware\Core\Framework\Log\Package; use Symfony\Component\HttpFoundation\File\UploadedFile; -#[Package('content')] +#[Package('buyers-experience')] trait MimeTypeValidationTrait { /** diff --git a/src/Storefront/Framework/Media/Validator/StorefrontMediaDocumentValidator.php b/src/Storefront/Framework/Media/Validator/StorefrontMediaDocumentValidator.php index f5aa3171ebd..ab89566d014 100644 --- a/src/Storefront/Framework/Media/Validator/StorefrontMediaDocumentValidator.php +++ b/src/Storefront/Framework/Media/Validator/StorefrontMediaDocumentValidator.php @@ -7,7 +7,7 @@ use Shopware\Storefront\Framework\Media\StorefrontMediaValidatorInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; -#[Package('content')] +#[Package('buyers-experience')] class StorefrontMediaDocumentValidator implements StorefrontMediaValidatorInterface { use MimeTypeValidationTrait; @@ -24,7 +24,7 @@ public function validate(UploadedFile $file): void ]); if (!$valid) { - throw new FileTypeNotAllowedException($file->getMimeType(), $this->getType()); + throw new FileTypeNotAllowedException((string) $file->getMimeType(), $this->getType()); } } } diff --git a/src/Storefront/Framework/Media/Validator/StorefrontMediaImageValidator.php b/src/Storefront/Framework/Media/Validator/StorefrontMediaImageValidator.php index 4c47b36d342..340d43ab6e4 100644 --- a/src/Storefront/Framework/Media/Validator/StorefrontMediaImageValidator.php +++ b/src/Storefront/Framework/Media/Validator/StorefrontMediaImageValidator.php @@ -7,7 +7,7 @@ use Shopware\Storefront\Framework\Media\StorefrontMediaValidatorInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; -#[Package('content')] +#[Package('buyers-experience')] class StorefrontMediaImageValidator implements StorefrontMediaValidatorInterface { use MimeTypeValidationTrait; diff --git a/src/Storefront/Page/Cms/CmsPageLoadedHook.php b/src/Storefront/Page/Cms/CmsPageLoadedHook.php index cf0af3cc245..5a1513bf4ad 100644 --- a/src/Storefront/Page/Cms/CmsPageLoadedHook.php +++ b/src/Storefront/Page/Cms/CmsPageLoadedHook.php @@ -17,7 +17,7 @@ * * @final */ -#[Package('content')] +#[Package('buyers-experience')] class CmsPageLoadedHook extends PageLoadedHook { use SalesChannelContextAwareTrait; diff --git a/src/Storefront/Page/Cms/DefaultMediaResolver.php b/src/Storefront/Page/Cms/DefaultMediaResolver.php index 360dd48e7ee..2a76b7af2fe 100644 --- a/src/Storefront/Page/Cms/DefaultMediaResolver.php +++ b/src/Storefront/Page/Cms/DefaultMediaResolver.php @@ -8,7 +8,7 @@ use Shopware\Core\Framework\Log\Package; use Symfony\Component\Asset\Packages; -#[Package('content')] +#[Package('buyers-experience')] class DefaultMediaResolver extends AbstractDefaultMediaResolver { private const CMS_SNIPPET_DEFAULT_MEDIA_NAME = 'component.cms.defaultMedia'; diff --git a/src/Storefront/Page/LandingPage/LandingPage.php b/src/Storefront/Page/LandingPage/LandingPage.php index 7d533de6345..b315de9a1d1 100644 --- a/src/Storefront/Page/LandingPage/LandingPage.php +++ b/src/Storefront/Page/LandingPage/LandingPage.php @@ -7,7 +7,7 @@ use Shopware\Core\Framework\Log\Package; use Shopware\Storefront\Page\Page; -#[Package('content')] +#[Package('buyers-experience')] class LandingPage extends Page { protected ?LandingPageEntity $landingPage = null; diff --git a/src/Storefront/Page/LandingPage/LandingPageLoadedEvent.php b/src/Storefront/Page/LandingPage/LandingPageLoadedEvent.php index 3a8b442b81b..cab83ed31a9 100644 --- a/src/Storefront/Page/LandingPage/LandingPageLoadedEvent.php +++ b/src/Storefront/Page/LandingPage/LandingPageLoadedEvent.php @@ -7,7 +7,7 @@ use Shopware\Storefront\Page\PageLoadedEvent; use Symfony\Component\HttpFoundation\Request; -#[Package('content')] +#[Package('buyers-experience')] class LandingPageLoadedEvent extends PageLoadedEvent { /** diff --git a/src/Storefront/Page/LandingPage/LandingPageLoadedHook.php b/src/Storefront/Page/LandingPage/LandingPageLoadedHook.php index 1e4a2e76b1a..f920b74cc9b 100644 --- a/src/Storefront/Page/LandingPage/LandingPageLoadedHook.php +++ b/src/Storefront/Page/LandingPage/LandingPageLoadedHook.php @@ -16,7 +16,7 @@ * * @final */ -#[Package('content')] +#[Package('buyers-experience')] class LandingPageLoadedHook extends PageLoadedHook { use SalesChannelContextAwareTrait; diff --git a/src/Storefront/Page/LandingPage/LandingPageLoader.php b/src/Storefront/Page/LandingPage/LandingPageLoader.php index 49d6a20e463..404db0ef292 100644 --- a/src/Storefront/Page/LandingPage/LandingPageLoader.php +++ b/src/Storefront/Page/LandingPage/LandingPageLoader.php @@ -15,7 +15,7 @@ /** * Do not use direct or indirect repository calls in a PageLoader. Always use a store-api route to get or put data. */ -#[Package('content')] +#[Package('buyers-experience')] class LandingPageLoader { /**