protected function loadSyliusUser($userType, $email)
    {
        if (empty($email)) {
            return null;
        }

        /** @var \Sylius\Component\User\Repository\UserRepositoryInterface $userRepository */
        $userRepository = $this->getContainer()->get(
            sprintf('sylius.repository.%s_user', $userType)
        );

        return $userRepository->findOneByEmail($email);
    }
protected function loadSyliusUser($userType, $email)
    {
        if (empty($email)) {
            return null;
        }

        /** @var \Sylius\Component\User\Repository\UserRepositoryInterface $userRepository */
        $userRepository = $this->getContainer()->get(
            sprintf('sylius.repository.%s_user', $userType)
        );

        return $userRepository->findOneByEmail($email);
    }
protected function loadSyliusUser ( $ userType , $ email ) { if ( empty ( $ email ) ) { return null ; } /** @var \Sylius\Component\User\Repository\UserRepositoryInterface $userRepository */ $ userRepository = $ this -> getContainer ( ) -> get ( sprintf ( 'sylius.repository.%s_user' , $ userType ) ) ; return $ userRepository -> findOneByEmail ( $ email ) ; }
Loads the Sylius user from the repo.

@param string $userType
@param string $email

@return \Sylius\Component\User\Model\UserInterface
Loads the Sylius user from the repo .