Skip to content

Commit

Permalink
feature: remove serviceManager and use serviceLocator instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-Stelmaczonek committed Oct 4, 2023
1 parent 5a36988 commit fe2e09b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/MoveResources.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ private function moveResource(\core_kernel_classes_Resource $mediaInstance): voi

private function getMediaService(): MediaService
{
return $this->getServiceManager()->getContainer()->get(MediaService::class);
return $this->getServiceLocator()->getContainer()->get(MediaService::class);
}

private function getResourceTransfer(): ResourceTransferInterface
{
return $this->getServiceManager()->getContainer()->get(ResourceTransferProxy::class);
return $this->getServiceLocator()->getContainer()->get(ResourceTransferProxy::class);
}
}

0 comments on commit fe2e09b

Please sign in to comment.