Skip to content
Snippets Groups Projects
Commit e492d953 authored by David Maus's avatar David Maus
Browse files

Remove deprecated functionality

The Service is setup in VuFind main module, the module does nothing
special except providing the classes and an autoloader configuration.
parent 529ab1e0
No related merge requests found
...@@ -42,13 +42,6 @@ namespace VuFindHttp; ...@@ -42,13 +42,6 @@ namespace VuFindHttp;
class Module class Module
{ {
/**
* Relative path to search service configuration.
*
* @var string
*/
protected $configPath = 'config/http.conf.php';
/** /**
* Return autoloader configuration. * Return autoloader configuration.
* *
...@@ -65,51 +58,4 @@ class Module ...@@ -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
<?php
return array(
'instance' => array(
'VuFindHttp\HttpService' => array(
'parameters' => array(
'proxyConfig' => array(),
)
)
)
);
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