示例#1
0
 /**
  * GenerateShortcodeMiddleware constructor.
  *
  * @param UrlShortenerInterface $urlShortener
  * @param TranslatorInterface $translator
  * @param array $domainConfig
  * @param LoggerInterface|null $logger
  *
  * @Inject({UrlShortener::class, "translator", "config.url_shortener.domain", "Logger_Shlink"})
  */
 public function __construct(UrlShortenerInterface $urlShortener, TranslatorInterface $translator, array $domainConfig, LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     $this->urlShortener = $urlShortener;
     $this->translator = $translator;
     $this->domainConfig = $domainConfig;
 }
示例#2
0
 /**
  * EditTagsAction constructor.
  * @param ShortUrlServiceInterface $shortUrlService
  * @param TranslatorInterface $translator
  * @param LoggerInterface|null $logger
  *
  * @Inject({ShortUrlService::class, "translator", "Logger_Shlink"})
  */
 public function __construct(ShortUrlServiceInterface $shortUrlService, TranslatorInterface $translator, LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     $this->shortUrlService = $shortUrlService;
     $this->translator = $translator;
 }
示例#3
0
 /**
  * GetVisitsAction constructor.
  * @param VisitsTrackerInterface $visitsTracker
  * @param TranslatorInterface $translator
  * @param LoggerInterface $logger
  *
  * @Inject({VisitsTracker::class, "translator", "Logger_Shlink"})
  */
 public function __construct(VisitsTrackerInterface $visitsTracker, TranslatorInterface $translator, LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     $this->visitsTracker = $visitsTracker;
     $this->translator = $translator;
 }
示例#4
0
 /**
  * ResolveUrlAction constructor.
  * @param UrlShortenerInterface|UrlShortener $urlShortener
  * @param TranslatorInterface $translator
  * @param LoggerInterface $logger
  *
  * @Inject({UrlShortener::class, "translator"})
  */
 public function __construct(UrlShortenerInterface $urlShortener, TranslatorInterface $translator, LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     $this->urlShortener = $urlShortener;
     $this->translator = $translator;
 }