Skip to content
Snippets Groups Projects
Commit c6f61368 authored by Demian Katz's avatar Demian Katz
Browse files

Eliminated unused parameters.

parent 777b881b
Branches
Tags
No related merge requests found
......@@ -59,9 +59,7 @@ class QRCodeController extends AbstractBase
if (!$this->loader) {
$this->loader = new Loader(
$this->getConfig(),
$this->getServiceLocator()->get('VuFindTheme\ThemeInfo'),
$this->getServiceLocator()->get('VuFind\Http')->createClient(),
$this->getServiceLocator()->get('VuFind\CacheManager')->getCacheDir()
$this->getServiceLocator()->get('VuFindTheme\ThemeInfo')
);
\VuFind\ServiceManager\Initializer::initInstance(
$this->loader, $this->getServiceLocator()
......
......@@ -43,7 +43,6 @@ use \PHPQRCode, Zend\Log\LoggerInterface;
*/
class Loader implements \Zend\Log\LoggerAwareInterface
{
/**
* property to hold VuFind configuration settings
*
......@@ -51,13 +50,6 @@ class Loader implements \Zend\Log\LoggerAwareInterface
*/
protected $config;
/**
* HTTP client
*
* @var \Zend\Http\Client
*/
protected $client;
/**
* Property for storing raw qrcode data; may be null if image is unavailable
*
......@@ -107,14 +99,10 @@ class Loader implements \Zend\Log\LoggerAwareInterface
*
* @param \Zend\Config\Config $config VuFind configuration
* @param \VuFindTheme\ThemeInfo $theme VuFind theme tools
* @param \Zend\Http\Client $client HTTP client
*/
public function __construct($config, \VuFindTheme\ThemeInfo $theme,
\Zend\Http\Client $client
) {
public function __construct($config, \VuFindTheme\ThemeInfo $theme) {
$this->config = $config;
$this->themeTools = $theme;
$this->client = $client;
}
/**
......
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