protected static function buildRoutes()
 {
     $routes = parent::buildRoutes();
     $routes[] = array('GET', '/', 'editAccount');
     $routes[] = array('POST', '/', 'saveAccount');
     return $routes;
 }
 protected static function buildAjaxRoutes()
 {
     $routes = parent::buildAjaxRoutes();
     $routes[] = array('POST', '/', 'addSharing');
     $routes[] = array('POST', '/{token}', 'removeSharing');
     return $routes;
 }
 protected function abort($code, $error = null)
 {
     if ($error === null && $code === 404) {
         $error = 'error.fileNotFound';
     }
     parent::abort($code, $error);
 }
 protected function getJsVariables()
 {
     global $app;
     $jsVariables = parent::getJsVariables();
     $jsVariables['templates']['dropzonePreview'] = $this->renderFragment(array(), 'dropzonePreview');
     $jsVariables['locale']['torrents.dropzone'] = $app['translator']->trans('torrents.dropzone');
     return $jsVariables;
 }
 protected static function buildAjaxRoutes()
 {
     $routes = parent::buildRoutes();
     $routes[] = array('POST', '/clear/apc', 'clearApc');
     $routes[] = array('POST', '/clear/twig', 'clearTwig');
     $routes[] = array('POST', '/clear/translations', 'clearTranslations');
     $routes[] = array('POST', '/clear', 'clearAll');
     return $routes;
 }
 protected static function buildAjaxRoutes()
 {
     $routes = parent::buildAjaxRoutes();
     $routes[] = array('POST', '/remove', 'removeUser');
     return $routes;
 }
 protected static function buildRoutes()
 {
     $routes = parent::buildRoutes();
     $routes[] = array('GET', '/', 'home');
     return $routes;
 }
 protected static function buildRoutes()
 {
     $routes = parent::buildRoutes();
     $routes[] = array('GET', '/', 'listAdministrationModules');
     return $routes;
 }