/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }