diff --git a/module/VuDL/src/VuDL/Connection/Manager.php b/module/VuDL/src/VuDL/Connection/Manager.php index a800c4a135f8a762eb6bf297e34c5c50aafcccd1..2a0266a5e5aa63715295f6724ffc0bad3042ec05 100644 --- a/module/VuDL/src/VuDL/Connection/Manager.php +++ b/module/VuDL/src/VuDL/Connection/Manager.php @@ -44,20 +44,20 @@ class Manager * Array of classes to try in order */ protected $priority; - + /** * Cache of class objects */ protected $connections; - + /** * Used to load class objects */ protected $serviceLocator; - + /** * Constructor - * + * * @param array $priority Order we want to try connectors in * @param ServiceLocator $sm Object to load everything from */ @@ -67,12 +67,12 @@ class Manager $this->connections = array(); $this->serviceLocator = $sm; } - + /** * Get a class object from a classname, save in cache - * + * * @param string $className Class we want to load - * + * * @return object */ protected function get($className) @@ -83,7 +83,7 @@ class Manager } return $this->connections[$className]; } - + /** * Try to call a function in each successive class * according to priority diff --git a/module/VuFind/tests/bootstrap.php b/module/VuFind/tests/bootstrap.php index 9f779729da5c3588fc85353207bb89253e630099..ba19b8540acb1cd91e1c3f2e6ce6839b1cedb55a 100644 --- a/module/VuFind/tests/bootstrap.php +++ b/module/VuFind/tests/bootstrap.php @@ -37,6 +37,7 @@ if (file_exists('vendor/autoload.php')) { $loader->add('VuFindTest', __DIR__ . '/unit-tests/src'); $loader->add('VuFindTest', __DIR__ . '/../src'); $loader->add('VuFind', __DIR__ . '/../src'); + $loader->add('VuDL', __DIR__ . '/../../VuDL/src'); $loader->add('VuFindConsole', __DIR__ . '/../../VuFindConsole/src'); $loader->add('VuFindDevTools', __DIR__ . '/../../VuFindDevTools/src'); $loader->add('VuFindHttp', __DIR__ . '/../../VuFindHttp/src');