Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 /**
  * 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;
 }
Ejemplo n.º 6
0
 /**
  * Create a new authentication controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest', ['except' => 'logout']);
 }
Ejemplo n.º 7
0
 /**
  * Create a new password controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest');
 }