Skip to content

Commit

Permalink
Fix SaveMediaTrait container access
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-newvisibility authored Feb 27, 2023
1 parent 7e942e8 commit 7a4e537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/SaveMediaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ 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');
}

/**
* Get media manager.
*/
private function getMediaManager(): MediaManagerInterface
{
return $this->get('sulu_media.media_manager');
return $this->container->get('sulu_media.media_manager');
}

/**
Expand Down

0 comments on commit 7a4e537

Please sign in to comment.