src/Phlexible/Bundle/SiterootBundle/Controller/SiterootController.php
public function deleteAction(Request $request)
    {
        $siterootId = $request->get('id');

        $siterootManager = $this->get('phlexible_siteroot.siteroot_manager');

        $siteroot = $siterootManager->find($siterootId);
        $siterootManager->deleteSiteroot($siteroot);

        return new ResultResponse(true, 'Siteroot deleted.');
    }
public function deleteAction(Request $request)
    {
        $siterootId = $request->get('id');

        $siterootManager = $this->get('phlexible_siteroot.siteroot_manager');

        $siteroot = $siterootManager->find($siterootId);
        $siterootManager->deleteSiteroot($siteroot);

        return new ResultResponse(true, 'Siteroot deleted.');
    }
public function deleteAction ( Request $ request ) { $ siterootId = $ request -> get ( 'id' ) ; $ siterootManager = $ this -> get ( 'phlexible_siteroot.siteroot_manager' ) ; $ siteroot = $ siterootManager -> find ( $ siterootId ) ; $ siterootManager -> deleteSiteroot ( $ siteroot ) ; return new ResultResponse ( true , 'Siteroot deleted.' ) ; }
Delete siteroot.

@param Request $request

@return ResultResponse
@Route("/delete", name="siteroots_siteroot_delete")
Delete siteroot .