src/Phlexible/Bundle/MediaManagerBundle/Controller/FolderController.php
public function moveAction(Request $request)
    {
        $volumeId = $request->get('site_id');
        $targetId = $request->get('target_id');
        $sourceId = $request->get('source_id');

        $volume = $this->getVolume($volumeId);
        $folder = $volume->findFolder($sourceId);
        $targetFolder = $volume->findFolder($targetId);

        $volume->moveFolder($folder, $targetFolder, $this->getUser()->getId());

        return new ResultResponse(true);
    }
public function moveAction(Request $request)
    {
        $volumeId = $request->get('site_id');
        $targetId = $request->get('target_id');
        $sourceId = $request->get('source_id');

        $volume = $this->getVolume($volumeId);
        $folder = $volume->findFolder($sourceId);
        $targetFolder = $volume->findFolder($targetId);

        $volume->moveFolder($folder, $targetFolder, $this->getUser()->getId());

        return new ResultResponse(true);
    }
public function moveAction ( Request $ request ) { $ volumeId = $ request -> get ( 'site_id' ) ; $ targetId = $ request -> get ( 'target_id' ) ; $ sourceId = $ request -> get ( 'source_id' ) ; $ volume = $ this -> getVolume ( $ volumeId ) ; $ folder = $ volume -> findFolder ( $ sourceId ) ; $ targetFolder = $ volume -> findFolder ( $ targetId ) ; $ volume -> moveFolder ( $ folder , $ targetFolder , $ this -> getUser ( ) -> getId ( ) ) ; return new ResultResponse ( true ) ; }
Move folder.

@param Request $request

@return ResultResponse
@Route("/move", name="mediamanager_folder_move")
Move folder .