Sulu\Bundle\MediaBundle\Media\Manager\MediaManager::getUser PHP Method

getUser() protected method

Returns a user for a given user-id.
protected getUser ( $userId ) : Sulu\Component\Security\Authentication\UserInterface
$userId
return Sulu\Component\Security\Authentication\UserInterface
    protected function getUser($userId)
    {
        return $this->userRepository->findUserById($userId);
    }