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

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use OfficeBrain\Bundle\SolrBundle\Manager\Extended as SolrManager;

/**
 * @author OfficeBrain 4116 <info@officebrain.com>
 *
 * Description : This will manage user level Access.
 *
 **/
class SolrService
{

    /**
     * @author Employee Id: 4116
     * OB eCommerce User Access
     * Story : #
     * Issue : #
     * Task : #
     * Completed
     * Function created for decied the name of extented class
     * @param integer $userId
     * @return number
    */
    public static function initFactory($entityManager, $productDetailManager, $productAPI, $request)
    {
        $classInstance = new SolrManager\SolrExtended($entityManager, $productDetailManager, $productAPI, $request);
        return $classInstance;
    }
}
