<?php
namespace OfficeBrain\Bundle\UserBundle\Manager\Service;

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\Translation\Translator;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBag;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use OfficeBrain\Bundle\UserBundle\Manager\Extended as UserManager;

/**
 * @author Employee Id: 4273
 * OB eCommerce Product - Login
 * LoginServiceClass
 * - Define the extended class
 *
 */
class LoginService
{
    /**
     * @author Employee Id: 4273
     * OB eCommerce Product - Login
     * Function created for decied the name of extented class
     * @return ClassInstance
    */
    public static function initFactory($entityManager, $request, $session, $emailService, $router)
    {
        $classInstance=new UserManager\LoginExtended($entityManager, $request, $session, $emailService, $router);
        return $classInstance;
    }
}
