/**
  * SocialAuthController constructor.
  *
  * @param UserRepository $user
  */
 public function __construct(UserRepository $user, Guard $guard, Cloudinary $cloudinary)
 {
     parent::__construct();
     $this->user = $user;
     $this->guard = $guard;
     $this->cloudinary = $cloudinary;
 }
 /**
  * CategoriesController constructor. Initizialises dependencies via DI Injection.
  *
  * @param CategoryRepository $categoryRepository
  * @param Cloudinary         $cloudinary
  * @param VideoRepository    $videoRepo
  */
 public function __construct(CategoryRepository $categoryRepository, Cloudinary $cloudinary, VideoRepository $videoRepo)
 {
     parent::__construct();
     $this->categoryRepo = $categoryRepository;
     $this->cloudinary = $cloudinary;
     $this->videoRepo = $videoRepo;
 }
Example #3
0
 /**
  * Loads all DI objects for the class
  * VideosController constructor.
  *
  * @param VideoRepository          $video
  * @param Cloudinary               $cloudinary
  * @param CommentRepository        $comment
  * @param CategoryRepository       $categoryRepository
  * @param FavouriteVideoRepository $favouriteVideoRepository
  */
 public function __construct(VideoRepository $video, Cloudinary $cloudinary, CommentRepository $comment, CategoryRepository $categoryRepository, FavouriteVideoRepository $favouriteVideoRepository)
 {
     parent::__construct();
     $this->video = $video;
     $this->comment = $comment;
     $this->cloudinary = $cloudinary;
     $this->category = $categoryRepository;
     $this->favourite = $favouriteVideoRepository;
 }
Example #4
0
 /**
  * Create a new controller instance.
  * HomeController constructor.
  *
  * @param VideoRepository $videoRepository
  * @param Cloudinary      $cloudinary
  */
 public function __construct(VideoRepository $videoRepository, Cloudinary $cloudinary)
 {
     parent::__construct();
     $this->videoRepo = $videoRepository;
     $this->cloudinary = $cloudinary;
 }
 /**
  * Initializes all dependencies for the class
  * CommentsController constructor.
  *
  * @param CommentRepository $commentRepository
  * @param VideoRepository   $videoRepository
  */
 public function __construct(CommentRepository $commentRepository, VideoRepository $videoRepository)
 {
     parent::__construct();
     $this->commentRepository = $commentRepository;
     $this->videRepository = $videoRepository;
 }
Example #6
0
 /**
  * Create a new authentication controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest', ['except' => 'logout']);
 }
 /**
  * Create a new password controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest');
 }