public function changeImportPositionAction()
    {
        $authResponse  = $this->checkAuth([AdminResources::IMPORT], [], [AccessManager::UPDATE]);
        if ($authResponse !== null) {
            return $authResponse;
        }

        $query = $this->getRequest()->query;

        $this->dispatch(
            TheliaEvents::IMPORT_CHANGE_POSITION,
            new UpdatePositionEvent(
                $query->get('id'),
                $this->matchPositionMode($query->get('mode')),
                $query->get('value')
            )
        );

        return $this->generateRedirectFromRoute('import.list');
    }
public function changeImportPositionAction()
    {
        $authResponse  = $this->checkAuth([AdminResources::IMPORT], [], [AccessManager::UPDATE]);
        if ($authResponse !== null) {
            return $authResponse;
        }

        $query = $this->getRequest()->query;

        $this->dispatch(
            TheliaEvents::IMPORT_CHANGE_POSITION,
            new UpdatePositionEvent(
                $query->get('id'),
                $this->matchPositionMode($query->get('mode')),
                $query->get('value')
            )
        );

        return $this->generateRedirectFromRoute('import.list');
    }
public function changeImportPositionAction ( ) { $ authResponse = $ this -> checkAuth ( [ AdminResources :: IMPORT ] , [ ] , [ AccessManager :: UPDATE ] ) ; if ( $ authResponse !== null ) { return $ authResponse ; } $ query = $ this -> getRequest ( ) -> query ; $ this -> dispatch ( TheliaEvents :: IMPORT_CHANGE_POSITION , new UpdatePositionEvent ( $ query -> get ( 'id' ) , $ this -> matchPositionMode ( $ query -> get ( 'mode' ) ) , $ query -> get ( 'value' ) ) ) ; return $ this -> generateRedirectFromRoute ( 'import.list' ) ; }
Handle import position change action

@return \Thelia\Core\HttpFoundation\Response|\Symfony\Component\HttpFoundation\RedirectResponse
Handle import position change action