diff --git a/application/modules/rest/controllers/IndexController.php b/application/modules/rest/controllers/IndexController.php deleted file mode 100644 index a3d5101b8eeaa7aa2ed8e9d9d1b6f10e9d7bcd45..0000000000000000000000000000000000000000 --- a/application/modules/rest/controllers/IndexController.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/** - * Copyright (c) 2012-2014, Agence Française Informatique (AFI). All rights reserved. - * - * AFI-OPAC 2.0 is free software; you can redistribute it and/or modify - * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by - * the Free Software Foundation. - * - * There are special exceptions to the terms and conditions of the AGPL as it - * is applied to this software (see README file). - * - * AFI-OPAC 2.0 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU AFFERO GENERAL PUBLIC LICENSE for more details. - * - * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE - * along with AFI-OPAC 2.0; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - -class Rest_IndexController extends Restful_Controller { - public function catalogAction() { - parent::catalogAction(); - $this->_helper->getHelper('ViewRenderer')->setNoRender(); - $this->_response->setBody($this->view->catalog()); - } -} -?> \ No newline at end of file diff --git a/library/startup.php b/library/startup.php index 3ef717d9462aa4575d8c8ce1ec0827d61152b792..31a77b1d7a056dfbda4d141b0d42b3efe6461465 100644 --- a/library/startup.php +++ b/library/startup.php @@ -46,7 +46,6 @@ class Bokeh_Engine { ->setupMail() ->setupFrontController() ->setupPagination() - ->setupRestful() ->setupSearch() ->setupDigitalResources() ->setupCustomFields(); @@ -376,22 +375,6 @@ class Bokeh_Engine { } - function setupRestful() { - if (!(new Class_Testing_FileSystem())->file_exists(ROOT_PATH . 'restful.php')) - return $this; - - set_include_path(ROOT_PATH . '/restful/library' . PATH_SEPARATOR . - get_include_path()); - - $config = new Zend_Config(include ROOT_PATH . 'restful.php'); - Restful_Model_Configuration::setConfig($config); - Restful_Bootstrap::asPlugin(Zend_Controller_Front::getInstance(), - 'rest', - Zend_Controller_Action_HelperBroker::getExistingHelper('ViewRenderer')); - return $this; - } - - function setupSearch() { defineConstant('MAX_SEARCH_RESULTS', ''); Class_CriteresRecherche::setMaxSearchResults(MAX_SEARCH_RESULTS);