Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Nov 13, 2021
1 parent a038d7d commit cbc4469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/flat/src/Importer/ImageImporterTrait.php
Expand Up @@ -11,7 +11,7 @@
*/
trait ImageImporterTrait
{
abstract public function getMedia(string $media): MediaInterface;
abstract protected function getMedia(string $media): MediaInterface;

public function importImage(string $filePath, DateTimeInterface $dateTime): void
{
Expand Down
2 changes: 1 addition & 1 deletion packages/flat/src/Importer/MediaImporter.php
Expand Up @@ -142,7 +142,7 @@ private function copyToMediaDir(string $filePath): string
return $filePath;
}

private function getMedia(string $media): MediaInterface
protected function getMedia(string $media): MediaInterface
{
$mediaEntity = Repository::getMediaRepository($this->em, $this->entityClass)->findOneBy(['media' => $media]);
$this->newMedia = false;
Expand Down

0 comments on commit cbc4469

Please sign in to comment.