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

Eliminated unused parameters.

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