public function indexAction($_view = 'import')
    {
        $authResponse  = $this->checkAuth([AdminResources::IMPORT], [], [AccessManager::VIEW]);
        if ($authResponse !== null) {
            return $authResponse;
        }

        $this->getParserContext()
            ->set('category_order', $this->getRequest()->query->get('category_order', 'manual'))
            ->set('import_order', $this->getRequest()->query->get('import_order', 'manual'))
        ;

        return $this->render($_view);
    }
public function indexAction($_view = 'import')
    {
        $authResponse  = $this->checkAuth([AdminResources::IMPORT], [], [AccessManager::VIEW]);
        if ($authResponse !== null) {
            return $authResponse;
        }

        $this->getParserContext()
            ->set('category_order', $this->getRequest()->query->get('category_order', 'manual'))
            ->set('import_order', $this->getRequest()->query->get('import_order', 'manual'))
        ;

        return $this->render($_view);
    }
public function indexAction ( $ _view = 'import' ) { $ authResponse = $ this -> checkAuth ( [ AdminResources :: IMPORT ] , [ ] , [ AccessManager :: VIEW ] ) ; if ( $ authResponse !== null ) { return $ authResponse ; } $ this -> getParserContext ( ) -> set ( 'category_order' , $ this -> getRequest ( ) -> query -> get ( 'category_order' , 'manual' ) ) -> set ( 'import_order' , $ this -> getRequest ( ) -> query -> get ( 'import_order' , 'manual' ) ) ; return $ this -> render ( $ _view ) ; }
Handle default action, that is, list available imports

@param string $_view View to render

@return \Thelia\Core\HttpFoundation\Response
Handle default action that is list available imports