diff --git a/module/VuFind/src/VuFind/Search/Factory/SummonBackendFactory.php b/module/VuFind/src/VuFind/Search/Factory/SummonBackendFactory.php index 42e4a7ae512ba6cc628072b6f06ed773267a5e41..7c822e7478cbabc570346a8d1d4198b199f70b02 100644 --- a/module/VuFind/src/VuFind/Search/Factory/SummonBackendFactory.php +++ b/module/VuFind/src/VuFind/Search/Factory/SummonBackendFactory.php @@ -29,10 +29,10 @@ namespace VuFind\Search\Factory; +use SerialsSolutions\Summon\Zend2 as Connector; use VuFindSearch\Backend\BackendInterface; use VuFindSearch\Backend\Summon\Response\RecordCollectionFactory; use VuFindSearch\Backend\Summon\QueryBuilder; -use VuFindSearch\Backend\Summon\Connector; use VuFindSearch\Backend\Summon\Backend; use Zend\ServiceManager\ServiceLocatorInterface; diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php b/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php index 29158fd537d32078cc134a6e27527bfa70ce3792..c4040039cc0aa3ccbf88fede6110c4adb4f795b7 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Backend.php @@ -29,6 +29,7 @@ namespace VuFindSearch\Backend\Summon; +use SerialsSolutions\Summon\Zend2 as Connector; use SerialsSolutions_Summon_Query as SummonQuery; use VuFindSearch\Query\AbstractQuery; diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Connector.php deleted file mode 100644 index 22db2faac6d08d19fccea705183fe820bce6f4ff..0000000000000000000000000000000000000000 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Summon/Connector.php +++ /dev/null @@ -1,76 +0,0 @@ -<?php -/** - * Summon Search API Interface (VuFind implementation) - * - * PHP version 5 - * - * Copyright (C) Andrew Nagy 2009. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @category VuFind2 - * @package Summon - * @author Andrew S. Nagy <vufind-tech@lists.sourceforge.net> - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://api.summon.serialssolutions.com/help/api/ API Documentation - */ -namespace VuFindSearch\Backend\Summon; -use SerialsSolutions\Summon\Zend2 as BaseSummon, Zend\Log\LoggerInterface; - -/** - * Summon Search API Interface (VuFind implementation) - * - * @category VuFind2 - * @package Summon - * @author Andrew S. Nagy <vufind-tech@lists.sourceforge.net> - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://api.summon.serialssolutions.com/help/api/ API Documentation - */ -class Connector extends BaseSummon implements \Zend\Log\LoggerAwareInterface -{ - /** - * Logger object for debug info (or false for no debugging). - * - * @var LoggerInterface|bool - */ - protected $logger = false; - - /** - * Set the logger - * - * @param LoggerInterface $logger Logger to use. - * - * @return void - */ - public function setLogger(LoggerInterface $logger) - { - $this->logger = $logger; - } - - /** - * Print a message if debug is enabled. - * - * @param string $msg Message to print - * - * @return void - */ - protected function debugPrint($msg) - { - if ($this->logger) { - $this->logger->debug("$msg\n"); - } - } -}