Skip to content

Commit

Permalink
Added improvements for v6.6.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
silverDuy committed Jan 15, 2025
1 parent b3e4a49 commit 8765f58
Showing 1 changed file with 65 additions and 1 deletion.
66 changes: 65 additions & 1 deletion src/6.6/6.6.10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
nav:
title: v6.6.10.0
meta:
date: 2025-01-xx
date: 2025-01-15
---

# Release notes Shopware 6.6.10.0
Expand All @@ -17,7 +17,71 @@ This minor release contains
* tested on MySQL 8 and MariaDB 10.11

## Improvements
### Upgrade to Symfony 7.2
* Changed `symfony/*` dependencies to `^7.2`

### Bulk entity extension
* Deprecated EntityExtension::getDefinitionClass. It will be replaced by `EntityExtension::getEntityName`, which needs to return the entity name.


Before:

```php
<?php

namespace Examples\Extension;

use Shopware\Core\Content\Product\ProductDefinition;
use Shopware\Core\Framework\DataAbstractionLayer\EntityExtension;

class MyEntityExtension extends EntityExtension
{
public function getDefinitionClass(): string
{
return ProductDefinition::class;
}
}
```

After:

```php
<?php

namespace Examples\Extension;

use Shopware\Core\Content\Product\ProductDefinition;
use Shopware\Core\Framework\DataAbstractionLayer\EntityExtension;

class MyEntityExtension extends EntityExtension
{
public function getEntityName() : string
{
return ProductDefinition::ENTITY_NAME;
}
}
```

### Using external URL for media's path without storing physical files
* You can now store media paths as external URLs using the admin API. This allows for more flexible media management without the need to store physical files on the server.

**Example Request:**

```http
POST http://sw.test/api/media
Content-Type: application/json
{
"id": "01934e0015bd7174b35838bbb30dc927",
"mediaFolderId": "01934ebfc0da735d841f38e8e54fda09",
"path": "https://test.com/photo/2024/11/30/sunflowers.jpg",
"fileName": "sunflower",
"mimeType": "image/jpeg"
}
```

### Add aggregate admin api
* Added generic `/api/aggregate/{entityName}` API. It is similar to already existing `/api/search/${entityName}`, but without loading entities

## Fixed bugs

Expand Down

0 comments on commit 8765f58

Please sign in to comment.