public function cancelAction($path)
    {
        $this->securityService->assertCommitter();
        $filePath = FilePath::parse($path);
        $user = $this->securityService->getGitUser();
        $this->wikiService->removeLock($user, $filePath);

        return $this->redirect($this->generateUrl('ddr_gitki_file', ['path' => $filePath]));
    }
public function cancelAction($path)
    {
        $this->securityService->assertCommitter();
        $filePath = FilePath::parse($path);
        $user = $this->securityService->getGitUser();
        $this->wikiService->removeLock($user, $filePath);

        return $this->redirect($this->generateUrl('ddr_gitki_file', ['path' => $filePath]));
    }
public function cancelAction ( $ path ) { $ this -> securityService -> assertCommitter ( ) ; $ filePath = FilePath :: parse ( $ path ) ; $ user = $ this -> securityService -> getGitUser ( ) ; $ this -> wikiService -> removeLock ( $ user , $ filePath ) ; return $ this -> redirect ( $ this -> generateUrl ( 'ddr_gitki_file' , [ 'path' => $ filePath ] ) ) ; }
Cancels editing.

@param string $path

@return Response
Cancels editing .