diff --git a/Controller/SaveMediaTrait.php b/Controller/SaveMediaTrait.php index 15762e4..36b22a0 100644 --- a/Controller/SaveMediaTrait.php +++ b/Controller/SaveMediaTrait.php @@ -99,7 +99,7 @@ private function saveMedia(UploadedFile $uploadedFile, ?int $id, string $locale, */ private function getSystemCollectionManager(): SystemCollectionManagerInterface { - return $this->get('sulu_media.system_collections.manager'); + return $this->container->get('sulu_media.system_collections.manager'); } /** @@ -107,7 +107,7 @@ private function getSystemCollectionManager(): SystemCollectionManagerInterface */ private function getMediaManager(): MediaManagerInterface { - return $this->get('sulu_media.media_manager'); + return $this->container->get('sulu_media.media_manager'); } /**