/** * Create the supporting plugin manager. * * @param ServiceLocatorInterface $serviceLocator Service locator * @param array $rbacConfig ZfcRbac configuration * * @return PermissionProviderPluginManager */ protected function getPermissionProviderPluginManager(ServiceLocatorInterface $serviceLocator, array $rbacConfig) { $pm = new PermissionProvider\PluginManager(new Config($rbacConfig['vufind_permission_provider_manager'])); $pm->setServiceLocator($serviceLocator->getServiceLocator()); return $pm; }