Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Feb 3, 2022
1 parent 2a81f9a commit bf4f8fa
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -4,7 +4,6 @@

use Doctrine\ORM\EntityManagerInterface;
use LogicException;
use Psr\Log\LoggerInterface;
use Pushword\Core\AutowiringTrait\RequiredMediaClass;
use Pushword\Core\Entity\MediaInterface;
use Pushword\Core\Repository\Repository;
Expand All @@ -26,14 +25,10 @@ final class MediaBlockController extends AbstractController

private EntityManagerInterface $em;

private LoggerInterface $logger;

public function __construct(
EntityManagerInterface $entityManager,
LoggerInterface $logger
EntityManagerInterface $entityManager
) {
$this->em = $entityManager;
$this->logger = $logger;
}

public function manage(Request $request, ImageManager $imageManager, string $publicMediaDir): Response
Expand All @@ -60,8 +55,6 @@ public function manage(Request $request, ImageManager $imageManager, string $pub
}
}

$this->logger->info('`'.$media->getName(true).'` loaded');

$url = $imageManager->isImage($media) ? $imageManager->getBrowserPath((string) $media->getMedia())
: '/'.$publicMediaDir.'/'.$media->getMedia();

Expand Down

0 comments on commit bf4f8fa

Please sign in to comment.