From 7a4e53762ed11a5226a1ebfbc8452a02d6774547 Mon Sep 17 00:00:00 2001 From: dev-newvisibility <89986734+dev-newvisibility@users.noreply.github.com> Date: Mon, 27 Feb 2023 09:52:12 +0100 Subject: [PATCH] Fix SaveMediaTrait container access Fix https://github.com/sulu/SuluCommunityBundle/pull/162#issuecomment-1445191890 --- Controller/SaveMediaTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); } /**