# Shopware 5.7 RC1 & Content Types

**URL:** <https://forum.shopware.com/t/shopware-5-7-rc1-content-types/72370>\
**Category:** Programmierung\
**Created:** [27. Januar 2021 um 14:57 UTC](https://forum.shopware.com/t/shopware-5-7-rc1-content-types/72370 "2021-01-27T14:57:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codiverse](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@codiverse](https://forum.shopware.com/u/codiverse)\
**Post date:** [27. Januar 2021 um 14:57 UTC](https://forum.shopware.com/t/shopware-5-7-rc1-content-types/72370/1 "2021-01-27T14:57:08Z")

</div>

Hi zusammen,

ich versuche ein Plugin, welches die neuen SW Content Types verwendet ([Content Types](https://developers.shopware.com/developers-guide/content-types/)) für 5.7 bereit zu machen. In der services.xml habe ich alle auf public gesetzt, dennoch erhalte ich beim Aufruf (des automatisch von Shopware erstellten) Backend Fensters folgenden Fehler:

```
Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The "shopware.bundle.content_type.MeinPlugin" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead. in /Users/constantin/Sites/localhost/sw57dev/vendor/symfony/dependency-injection/Container.php:275

```

Muss ich bei den Content Types noch etwas besonderes beachten? Im Upgrade Guide steht nichts und auch die Doku zu den Content Types ist noch nicht aktualisiert…

Freue mich über Feedback,  
Constantin

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [27. Januar 2021 um 15:13 UTC](https://forum.shopware.com/t/shopware-5-7-rc1-content-types/72370/2 "2021-01-27T15:13:12Z")

</div>

Hallo,

Die services sind durch das Symfony Update leider private geworden. Wir werden die im zum Final wieder public machen, sodass diese Verfügbar sind.

---

<div class="post-metadata">

**Author:** ![codiverse](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@codiverse](https://forum.shopware.com/u/codiverse)\
**Post date:** [27. Januar 2021 um 15:29 UTC](https://forum.shopware.com/t/shopware-5-7-rc1-content-types/72370/3 "2021-01-27T15:29:01Z")

</div>

Ok, danke!

Gilt das auch für den Plugin Logger, der automatisch erzeugt wird? Ich benutze im Plugin

```
$this->container->get('mein_plugin.logger')->error($e->getMessage());

```

und erhalte ebenfalls eine Fehlermeldung.

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [27. Januar 2021 um 15:52 UTC](https://forum.shopware.com/t/shopware-5-7-rc1-content-types/72370/4 "2021-01-27T15:52:44Z")

</div>

Das sollte das schon beheben&nbsp;[NTR - Fix visibility of some plugin resources in dependency injection · shopware/shopware@5dfb5fe · GitHub](https://github.com/shopware/shopware/commit/5dfb5fe9cdf8c7bac7bb95c6d6c67b29ecfbf127)
