__construct() public method

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