public function __construct(PhotoRepositoryInterface $photoRepository, PhotoAlbumRepository $photoAlbumRepository, Dispatcher $event)
 {
     parent::__construct();
     $this->photoRepository = $photoRepository;
     $this->albumRepository = $photoAlbumRepository;
     $this->event = $event;
 }
Example #2
0
 public function __construct(PostRepository $postRepository, BlockedUserRepository $blockedUserRepository, PhotoRepositoryInterface $photoRepositoryInterface, UserRepository $userRepository)
 {
     parent::__construct();
     $this->postRepository = $postRepository;
     $this->blockUserRepository = $blockedUserRepository;
     $this->photo = $photoRepositoryInterface;
     $this->userRepository = $userRepository;
     //set neccessary meta data
     if ($this->profileUser) {
         $this->theme->share('site_description', ($this->profileUser and $this->profileUser->bio) ? $this->profileUser->bio : \Config::get('site_description'));
         $this->theme->share('ogSiteName', $this->profileUser->present()->fullName());
         $this->theme->share('ogUrl', $this->profileUser->present()->url());
         $this->theme->share('ogTitle', $this->profileUser->present()->fullName());
         $this->theme->share('ogImage', $this->profileUser->present()->getAvatar(150));
     }
 }
 public function __construct(ConnectionRepository $connectionRepository)
 {
     parent::__construct();
     $this->connectionRepository = $connectionRepository;
 }