diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index ce86220e54d5b2a8e3b1927d41769363ce8cc854..b2c3694f7887b96bddaf7659459a9780108932f0 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -427,15 +427,7 @@ $config = [ ], ], 'autocomplete' => [ /* see VuFind\Autocomplete\PluginManager for defaults */ ], - 'channelprovider' => [ - 'factories' => [ - 'alphabrowse' => 'VuFind\ChannelProvider\Factory::getAlphaBrowse', - 'facets' => 'VuFind\ChannelProvider\Factory::getFacets', - 'listitems' => 'VuFind\ChannelProvider\Factory::getListItems', - 'random' => 'VuFind\ChannelProvider\Factory::getRandom', - 'similaritems' => 'VuFind\ChannelProvider\Factory::getSimilarItems', - ] - ], + 'channelprovider' => [ /* see VuFind\ChannelProvider\PluginManager for defaults */ ], 'content' => [ 'factories' => [ 'authornotes' => 'VuFind\Content\Factory::getAuthorNotes', diff --git a/module/VuFind/src/VuFind/ChannelProvider/PluginManager.php b/module/VuFind/src/VuFind/ChannelProvider/PluginManager.php index 4ebf605792a6490998cee3048bc71ed7af65400f..1f757af0710cf64a272ca56060802321a908d2e4 100644 --- a/module/VuFind/src/VuFind/ChannelProvider/PluginManager.php +++ b/module/VuFind/src/VuFind/ChannelProvider/PluginManager.php @@ -38,6 +38,37 @@ namespace VuFind\ChannelProvider; */ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager { + /** + * Default plugin aliases. + * + * @var array + */ + protected $aliases = [ + 'alphabrowse' => 'VuFind\ChannelProvider\AlphaBrowse', + 'facets' => 'VuFind\ChannelProvider\Facets', + 'listitems' => 'VuFind\ChannelProvider\ListItems', + 'random' => 'VuFind\ChannelProvider\Random', + 'similaritems' => 'VuFind\ChannelProvider\SimilarItems', + ]; + + /** + * Default plugin factories. + * + * @var array + */ + protected $factories = [ + 'VuFind\ChannelProvider\AlphaBrowse' => + 'VuFind\ChannelProvider\Factory::getAlphaBrowse', + 'VuFind\ChannelProvider\Facets' => + 'VuFind\ChannelProvider\Factory::getFacets', + 'VuFind\ChannelProvider\ListItems' => + 'VuFind\ChannelProvider\Factory::getListItems', + 'VuFind\ChannelProvider\Random' => + 'VuFind\ChannelProvider\Factory::getRandom', + 'VuFind\ChannelProvider\SimilarItems' => + 'VuFind\ChannelProvider\Factory::getSimilarItems', + ]; + /** * Return the name of the base class or interface that plug-ins must conform * to.