src/Misc/ImageUrlHelper.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Misc;
  3. use Symfony\Component\HttpFoundation\UrlHelper;
  4. class ImageUrlHelper
  5. {
  6.     public function __construct(
  7.         UrlHelper $urlHelper
  8.     ) {
  9.         $this->urlHelper $urlHelper;
  10.     }
  11.     public function getLogoUrl()
  12.     {
  13.         return $this->urlHelper->getAbsoluteUrl('/html/images/logo.png');
  14.     }
  15.     public function getNewsImageUrl()
  16.     {
  17.         return $this->urlHelper->getAbsoluteUrl('/html/images/logo.png');
  18.     }
  19.     public function getSchoolImageUrl()
  20.     {
  21.         return $this->urlHelper->getAbsoluteUrl('/html/images/logo.png');
  22.     }
  23. }