Skip to content
Snippets Groups Projects
Commit ea497111 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

remove unused restful storm

parent 96031aaf
Branches
Tags
1 merge request!2676Master
Pipeline #4247 passed with stage
in 42 minutes and 5 seconds
<?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
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment