<?php

namespace OfficeBrain\Bundle\ProductBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

/**
 * @Route("/admin/{_locale}/import",
 * 			defaults={"_locale": "en"},
 * 			requirements={"_locale": "en|fr"})
 */
class ProductImportExportController extends Controller
{
    /**
     * @Route("/", name="officebrainproductbundle_productimportexport_import")
     * @Template()
     */
    public function importAction()
    {
        header('P3P: CP="CAO PSA OUR"');
//         $users = $this->getDoctrine()->getRepository('OfficeBrainUserBundle:User')->findAllUserForSelect('ROLE_SUPPLIER');
        // Check Authentication of module by user
//         $api_manager = $this->get('officebrain_culture_api_manager');
//         $reponse = $api_manager->getList(TRUE);

        return $this->render('OfficeBrainProductBundle:ProductImportExport:import.html.twig', array(
//             'cultureArray' => $reponse['data'],
//             'ROLE' => $this->getUser()->getGroupingRole(),
//             'LOGIN_ID' => $this->getUser()->getId(),
//             'SUPPLIERS' => $users,
            'is_edit' => false,
        ));
    }
}
