diff --git a/module/VuFindHttp/Module.php b/module/VuFindHttp/Module.php index e906daa34bd49696e19ced217727133f62881f50..c690efc56a3507da07b602ac6e8990497db29641 100644 --- a/module/VuFindHttp/Module.php +++ b/module/VuFindHttp/Module.php @@ -42,13 +42,6 @@ namespace VuFindHttp; class Module { - /** - * Relative path to search service configuration. - * - * @var string - */ - protected $configPath = 'config/http.conf.php'; - /** * Return autoloader configuration. * @@ -65,51 +58,4 @@ class Module ); } - /** - * Return module configuration. - * - * @return array - */ - public function getConfig() - { - return array(); - } - - /** - * Initialize module. - * - * @return void - */ - public function init() - { - } - - /** - * Return service configuration. - * - * @return array - */ - public function getServiceConfig() - { - return array( - 'factories' => array( - 'VuFind\Http' => array($this, 'setup'), - ) - ); - } - - /** - * Return configured http service to superior service manager. - * - * @return \VuFind\Service\Search - */ - public function setup() - { - $config = include realpath(__DIR__ . '/' . $this->configPath); - - $di = new \Zend\Di\Di(); - $di->configure(new \Zend\Di\Config($config)); - return $di->get('VuFindHttp\HttpService'); - } - } \ No newline at end of file diff --git a/module/VuFindHttp/config/http.conf.php b/module/VuFindHttp/config/http.conf.php deleted file mode 100644 index 4e539c30e99d6e77873fbfcacdb11e3b2ae5856c..0000000000000000000000000000000000000000 --- a/module/VuFindHttp/config/http.conf.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -return array( - 'instance' => array( - 'VuFindHttp\HttpService' => array( - 'parameters' => array( - 'proxyConfig' => array(), - ) - ) - ) -);