public function __construct(UserService $userService, UserRepository $userRepo) { parent::__construct(); $this->userService = $userService; $this->userRepo = $userRepo; }
/** * Initialize gallery controller. * * @param type GalleryRepositoryInterface $gallery * * @return type */ public function __construct(GalleryRepositoryInterface $gallery) { $this->repository = $gallery; parent::__construct(); }