Ejemplo n.º 1
0
 /**
  * @param $id
  * @return JSONResponse
  */
 public function disableBackend($id)
 {
     try {
         $this->backendManager->disableBackend($id);
         return new JSONResponse(array("status" => "success"));
     } catch (BackendNotFoundException $e) {
         return new JSONResponse(array("status" => "error", "msg" => 404));
     }
 }
Ejemplo n.º 2
0
 /**
  * @NoAdminRequired
  */
 public function index()
 {
     $params = array();
     $params['backends'] = $this->backendManager->getBackends();
     return new TemplateResponse($this->appName, 'admin', $params, 'blank');
 }