src/Sulu/Bundle/SecurityBundle/UserManager/UserManager.php
private function getContact($id)
    {
        $contact = $this->contactManager->findById($id);

        if (!$contact) {
            throw new EntityNotFoundException($this->contactManager->getContactEntityName(), $id);
        }

        return $contact;
    }
private function getContact($id)
    {
        $contact = $this->contactManager->findById($id);

        if (!$contact) {
            throw new EntityNotFoundException($this->contactManager->getContactEntityName(), $id);
        }

        return $contact;
    }
private function getContact ( $ id ) { $ contact = $ this -> contactManager -> findById ( $ id ) ; if ( ! $ contact ) { throw new EntityNotFoundException ( $ this -> contactManager -> getContactEntityName ( ) , $ id ) ; } return $ contact ; }
Returns the contact with the given id.

@param int $id

@throws \Sulu\Component\Rest\Exception\EntityNotFoundException

@return Contact
Returns the contact with the given id .