diff --git a/module/VuFind/src/VuFind/Recommend/PluginManager.php b/module/VuFind/src/VuFind/Recommend/PluginManager.php index 0235173620f3034211059b8f0d99892f279483de..d537edb793d09d87d67ff6f280a8adaea4127eac 100644 --- a/module/VuFind/src/VuFind/Recommend/PluginManager.php +++ b/module/VuFind/src/VuFind/Recommend/PluginManager.php @@ -46,12 +46,12 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager public function __construct( \Zend\ServiceManager\ConfigInterface $configuration = null ) { - parent::__construct($configuration); - // These plugins are not meant to be shared -- the same module may be used // multiple times with different configurations, so we need to build a new // copy each time the plugin is retrieved. $this->setShareByDefault(false); + + parent::__construct($configuration); } /** diff --git a/module/VuFind/src/VuFind/RecordDriver/PluginManager.php b/module/VuFind/src/VuFind/RecordDriver/PluginManager.php index 6a2bbd2462b01df6d1605a5c122fabc1fdbcc1d3..17bc972f37db8a44336a31583b45267b21710544 100644 --- a/module/VuFind/src/VuFind/RecordDriver/PluginManager.php +++ b/module/VuFind/src/VuFind/RecordDriver/PluginManager.php @@ -46,6 +46,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager public function __construct( \Zend\ServiceManager\ConfigInterface $configuration = null ) { + // Record drivers are not meant to be shared -- every time we retrieve one, + // we are building a brand new object. + $this->setShareByDefault(false); + parent::__construct($configuration); // Add an initializer for setting up hierarchies @@ -63,10 +67,6 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager } }; $this->addInitializer($initializer, false); - - // Record drivers are not meant to be shared -- every time we retrieve one, - // we are building a brand new object. - $this->setShareByDefault(false); } /** diff --git a/module/VuFind/src/VuFind/Related/PluginManager.php b/module/VuFind/src/VuFind/Related/PluginManager.php index 2698edf1f4b998c0c2f4bdd0adad7dbb2566c18e..af1d827f7ad005151f75005b1188b1a2035c2837 100644 --- a/module/VuFind/src/VuFind/Related/PluginManager.php +++ b/module/VuFind/src/VuFind/Related/PluginManager.php @@ -46,12 +46,12 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager public function __construct( \Zend\ServiceManager\ConfigInterface $configuration = null ) { - parent::__construct($configuration); - // These plugins are not meant to be shared -- the same module may be used // multiple times with different configurations, so we need to build a new // copy each time the plugin is retrieved. $this->setShareByDefault(false); + + parent::__construct($configuration); } /** diff --git a/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php b/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php index 1cb9f6ff83dcc44b26432f905dbf460bda6e4cb8..9f3590029efe7debdf4885ad8b4b9933f1d9de9f 100644 --- a/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php +++ b/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php @@ -46,11 +46,11 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager public function __construct( \Zend\ServiceManager\ConfigInterface $configuration = null ) { - parent::__construct($configuration); - // Stats drivers are not meant to be shared -- every time we retrieve one, // we are building a brand new object. $this->setShareByDefault(false); + + parent::__construct($configuration); } /**