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

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use OfficeBrain\Bundle\EmailBundle\Manager\Extended as Extended;

/**
 *
 * @author OfficeBrain 4795 <info@officebrain.com>
 *
 * Description: This is service class which returns the instance of specific class
 *
 */
class EmailService
{
    /**
     * @author Employee Id: 4795
     *
     * Description : Set and return instance of class
     *
     * @param $container
     * @param $request
     * @return \OfficeBrain\Bundle\EmailBundle\Manager\Extended\EmailExtended
     */
    public function initFactory($container, $request, $countries, $languages)
    {
        $instanseOfClass = new Extended\EmailServiceExtended($container, $request, $countries, $languages);
        return $instanseOfClass;
    }
}
