src/Phlexible/Bundle/ElementBundle/Controller/LocksController.php
public function deleteAction($id)
    {
        $lockManager = $this->get('phlexible_element.element_lock_manager');
        $lock = $lockManager->find($id);

        $lockManager->deleteLock($lock);

        return new ResultResponse(true, 'Lock released.');
    }
public function deleteAction($id)
    {
        $lockManager = $this->get('phlexible_element.element_lock_manager');
        $lock = $lockManager->find($id);

        $lockManager->deleteLock($lock);

        return new ResultResponse(true, 'Lock released.');
    }
public function deleteAction ( $ id ) { $ lockManager = $ this -> get ( 'phlexible_element.element_lock_manager' ) ; $ lock = $ lockManager -> find ( $ id ) ; $ lockManager -> deleteLock ( $ lock ) ; return new ResultResponse ( true , 'Lock released.' ) ; }
Delete lock.

@param string $id

@return ResultResponse
@Route("/delete/{id}", name="locks_delete")
Delete lock .