Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __invoke(
}
$handler = new $requestedName(
$container->get(\VuFind\Session\Settings::class),
$container->get(\VuFind\Config\PluginManager::class)->get('config'),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config'),
$container->get(\VuFind\ILS\Connection::class),
$container->get('ViewRenderer'),
$container->get(\VuFind\ILS\Logic\Holds::class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function __invoke(
$requestedName,
?array $options = null
) {
$config
= $container->get(\VuFind\Config\PluginManager::class)->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$useFallbacks = $config->Content->useCoverFallbacksOnFail ?? false;
return new $requestedName(
$container->get(\VuFind\Session\Settings::class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __invoke(
$container->get(\VuFind\Session\Settings::class),
$container->get(\VuFind\Resolver\Driver\PluginManager::class),
$container->get('ViewRenderer'),
$container->get(\VuFind\Config\PluginManager::class)->get('config')
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config')
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __invoke(
$container->get(\VuFind\Auth\Manager::class)->getUserObject(),
$container->get(\Laminas\Session\SessionManager::class)->getId(),
$container->get(\VuFind\Search\SearchNormalizer::class),
$container->get(\VuFind\Config\PluginManager::class)->get('config')->toArray(),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigArray('config'),
$container->get(\VuFind\Search\Memory::class)
);
return $result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config')->toArray();
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigArray('config');
return new $requestedName(
$container->get(\VuFind\IdentifierLinker\PluginManager::class),
$container->get('ViewRenderer'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __invoke(
return new $requestedName(
$container->get(\Laminas\Session\SessionManager::class),
$container->get(\VuFind\Search\Results\PluginManager::class),
$container->get(\VuFind\Config\PluginManager::class)->get('config'),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config'),
$servicePluginManager->get(\VuFind\Db\Service\SessionServiceInterface::class)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __invoke(
$container->get(\VuFind\Mailer\Mailer::class),
$container->get('ViewRenderer'),
$container->get(\VuFind\Net\UserIpReader::class),
$container->get(\VuFind\Config\PluginManager::class)->get('config'),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config'),
$container->get(\VuFind\Db\Service\PluginManager::class)
->get(\VuFind\Db\Service\AuthHashServiceInterface::class)
);
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ILSAuthenticatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function (string $algo) use ($container) {
),
$container->get(\VuFind\ILS\Connection::class),
$container->get(\VuFind\Auth\EmailAuthenticator::class),
$container->get(\VuFind\Config\PluginManager::class)->get('config')
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config')
);
return $service;
}
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/LoginTokenManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __invoke(

$dbServiceManager = $container->get(\VuFind\Db\Service\PluginManager::class);
return new $requestedName(
$container->get(\VuFind\Config\PluginManager::class)->get('config'),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config'),
$dbServiceManager->get(UserServiceInterface::class),
$dbServiceManager->get(LoginTokenServiceInterface::class),
$container->get(\VuFind\Cookie\CookieManager::class),
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/ManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __invoke(
throw new \Exception('Unexpected options sent to factory.');
}
// Load dependencies:
$config = $container->get(\VuFind\Config\PluginManager::class)->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$userService = $container->get(\VuFind\Db\Service\PluginManager::class)
->get(\VuFind\Db\Service\UserServiceInterface::class);
$sessionManager = $container->get(\Laminas\Session\SessionManager::class);
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/OpenIDConnectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function __invoke(
'OpenIDConnect',
$container->get(\Laminas\Session\SessionManager::class)
);
$config = $container->get(\VuFind\Config\PluginManager::class)->get('OpenIDConnectClient')->toArray();
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigArray('OpenIDConnectClient');
$ilsAuthenticator = $container->get(\VuFind\Auth\ILSAuthenticator::class);
return new $requestedName($session, $config, $ilsAuthenticator);
}
Expand Down
6 changes: 3 additions & 3 deletions module/VuFind/src/VuFind/Auth/ShibbolethFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ public function __invoke(
*/
public function getConfigurationLoader(ContainerInterface $container)
{
$configManager = $container->get(\VuFind\Config\PluginManager::class);
$config = $configManager->get('config');
$configManager = $container->get(\VuFind\Config\ConfigManager::class);
$config = $configManager->getConfigObject('config');
$override = $config->Shibboleth->allow_configuration_override ?? false;
if ($override) {
$shibConfig = $configManager->get(self::SHIBBOLETH_CONFIG_FILE_NAME);
$shibConfig = $configManager->getConfigObject(self::SHIBBOLETH_CONFIG_FILE_NAME);
return new MultiIdPConfigurationLoader($config, $shibConfig);
}
return new SingleIdPConfigurationLoader($config);
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/SimulatedSSOFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __invoke(
$url('simulatedsso-login', [], ['query' => ['return' => $target]])
);
};
$config = $container->get(\VuFind\Config\PluginManager::class)->get('SimulatedSSO')->toArray();
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigArray('SimulatedSSO');
return new $requestedName(
$getUrl,
$config,
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Bootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ public function __construct(MvcEvent $event)
$app = $event->getApplication();
$this->events = $app->getEventManager();
$this->container = $app->getServiceManager();
$this->config = $this->container->get(\VuFind\Config\PluginManager::class)
->get('config');
$this->config = $this->container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
}

/**
Expand Down
5 changes: 3 additions & 2 deletions module/VuFind/src/VuFind/Cache/ManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$configManager = $container->get(\VuFind\Config\ConfigManager::class);
return new $requestedName(
$container->get(\VuFind\Config\PluginManager::class)->get('config'),
$container->get(\VuFind\Config\PluginManager::class)->get('searches'),
$configManager->getConfigObject('config'),
$configManager->getConfigObject('searches'),
$container->get(\Laminas\Cache\Service\StorageAdapterFactory::class)
);
}
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Captcha/ImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ public function __invoke(
'imgDir' => $cacheOptions->getCacheDir(),
];

$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');

if (isset($config->Captcha->image_length)) {
$imageOptions['wordLen'] = $config->Captcha->image_length;
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Captcha/IntervalFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __invoke(
);
return new $requestedName(
$sessionStorage,
$container->get(\VuFind\Config\PluginManager::class)->get('config')
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config')
);
}
}
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/CartFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$active = isset($config->Site->showBookBag)
? (bool)$config->Site->showBookBag : false;
$size = $config->Site->bookBagMaxSize ?? 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __invoke(
throw new \Exception('Unexpected options sent to factory!');
}
return new $requestedName(
$container->get(\VuFind\Config\PluginManager::class)->get('channels'),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('channels'),
$container->get(\VuFind\Cache\Manager::class),
$container->get(\VuFind\ChannelProvider\PluginManager::class),
$container->get(\VuFind\Search\SearchRunner::class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __invoke(
throw new \Exception('Unexpected options sent to factory.');
}
return new $requestedName(
$container->get(\VuFind\Config\PluginManager::class)->get('config'),
$container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config'),
// Pass a callback to return the auth manager to prevent circular dependencies
// (we need the auth manager to determine some capabilities, but some of its
// dependencies may need to make capability checks as well).
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Connection/LibGuidesFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('LibGuidesAPI');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('LibGuidesAPI');
if (!isset($config->General->client_id)) {
throw new \Exception('client_id key missing from configuration.');
}
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Connection/RelaisFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$url = $config->Relais->authenticateurl ?? null;
$client = $container->get(\VuFindHttp\HttpService::class)
->createClient($url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public function __invoke(
if ($options !== null) {
throw new \Exception('Unexpected options sent to factory!');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');

// Special case: if the class name ends in Plus, we need to strip off
// the "Plus" and instead configure the base Syndetics class into "plus"
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Content/Covers/BooksiteFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$url = $config->Booksite->url ?? 'https://api.booksite.com';
if (!isset($config->Booksite->key)) {
throw new \Exception("Booksite 'key' not set in VuFind config");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)->get('BrowZine')?->toArray() ?? [];
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigArray('BrowZine');
$defaultIgnoreList = ['https://assets.thirdiron.com/default-journal-cover.png'];
$ignoreList = $config['Covers']['ignored_images'] ?? $defaultIgnoreList;
return new $requestedName($container->get(\VuFindSearch\Service::class), $ignoreList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$url = isset($config->Buchhandel->url)
? trim($config->Buchhandel->url, '/') . '/'
: 'https://api.vlb.de/api/v1/cover/';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$finalConfig = $config->Contentcafe ?? new \VuFind\Config\Config([]);
return new $requestedName($finalConfig);
}
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Content/Covers/KohaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
if (empty($config->Content->koha_cover_url)) {
throw new \Exception('Koha cover URL must be provided.');
}
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Content/Covers/OrbFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$configPluginManager = $container->get(\VuFind\Config\PluginManager::class);
$config = $configPluginManager->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$url = $config->Orb->url ?? 'api.base-orb.fr/v1';
if (!isset($config->Orb->user)) {
throw new \Exception("Orb 'user' not set in VuFind config");
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Content/Covers/SyndeticsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$syndetics = new $requestedName($config->Syndetics ?? null);
$cachingDownloader = $container->get(\VuFind\Http\CachingDownloader::class);
$syndetics->setCachingDownloader($cachingDownloader);
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Content/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ public function __invoke(
throw new \Exception('Unexpected options passed to factory.');
}
$pm = $container->get($this->getPluginManagerServiceName($requestedName));
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$setting = $this->getConfigSettingName($requestedName);
$providers = $config->Content->$setting ?? '';
return new Loader($pm, $providers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public function __invoke(
'Unexpected options passed to factory.'
);
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('obalkyknih');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('obalkyknih');
if (!isset($config->ObalkyKnih)) {
throw new ServiceNotCreatedException(
'ObalkyKnih service is not properly configured'
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Content/Reviews/BooksiteFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function __invoke(
if ($options !== null) {
throw new \Exception('Unexpected options sent to factory!');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
$url = $config->Booksite->url ?? 'https://api.booksite.com';
if (!isset($config->Booksite->key)) {
throw new \Exception("Booksite 'key' not set in VuFind config");
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Controller/AbstractBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ protected function catalogLogin()
*/
public function getConfig($id = 'config')
{
return $this->getService(\VuFind\Config\PluginManager::class)->get($id);
return $this->getService(\VuFind\Config\ConfigManager::class)->getConfigObject($id);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions module/VuFind/src/VuFind/Controller/AbstractBaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ class AbstractBaseFactory implements FactoryInterface
*/
protected function applyPermissions($container, $controller)
{
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('permissionBehavior');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('permissionBehavior');
$permissions = $config->global->controllerAccess ?? [];

if (!empty($permissions) && $controller instanceof Feature\AccessPermissionInterface) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$config = $container->get(\VuFind\Config\PluginManager::class)
->get('config');
$config = $container->get(\VuFind\Config\ConfigManager::class)->getConfigObject('config');
return $this->applyPermissions(
$container,
new $requestedName($container, $config)
Expand Down
Loading