/** * Pics constructor. * * @param \ACP3\Core\Controller\Context\FrontendContext $context * @param \ACP3\Core\Date $date * @param \ACP3\Modules\ACP3\Gallery\Model\Repository\GalleryRepository $galleryRepository * @param \ACP3\Modules\ACP3\Gallery\Cache $galleryCache */ public function __construct(Core\Controller\Context\FrontendContext $context, Core\Date $date, Gallery\Model\Repository\GalleryRepository $galleryRepository, Gallery\Cache $galleryCache) { parent::__construct($context); $this->date = $date; $this->galleryRepository = $galleryRepository; $this->galleryCache = $galleryCache; }
/** * Index constructor. * * @param \ACP3\Core\Controller\Context\FrontendContext $context * @param \ACP3\Core\Date $date * @param \ACP3\Core\Pagination $pagination * @param \ACP3\Modules\ACP3\Gallery\Model\Repository\GalleryRepository $galleryRepository */ public function __construct(Core\Controller\Context\FrontendContext $context, Core\Date $date, Core\Pagination $pagination, Gallery\Model\Repository\GalleryRepository $galleryRepository) { parent::__construct($context); $this->date = $date; $this->pagination = $pagination; $this->galleryRepository = $galleryRepository; }
/** * Image constructor. * * @param \ACP3\Core\Controller\Context\FrontendContext $context * @param \ACP3\Modules\ACP3\Gallery\Model\Repository\PictureRepository $pictureRepository */ public function __construct(Core\Controller\Context\FrontendContext $context, Gallery\Model\Repository\PictureRepository $pictureRepository) { parent::__construct($context); $this->pictureRepository = $pictureRepository; }