bookmarkRepository = $bookmarkRepository; } /** @var LikeRepository */ protected $likeRepository; /** * @param \WapplerSystems\BookmarksLikesRatings\Domain\Repository\LikeRepository $bookmarkRepository */ public function injectLikeRepository(LikeRepository $likeRepository) { $this->likeRepository = $likeRepository; } protected function getCurrentUser() : array { if (!$GLOBALS['TSFE']->fe_user) { throw new Exception('no access'); } return $GLOBALS['TSFE']->fe_user->user; } }