protected function SimplesamlphpAuthManager::checkLibrary in simpleSAMLphp Authentication 8.3
Check if the SimpleSAMLphp library can be found.
Fallback for when the library was not found via Composer.
2 calls to SimplesamlphpAuthManager::checkLibrary()
- SimplesamlphpAuthManager::getSimpleSamlConfiguration in src/
Service/ SimplesamlphpAuthManager.php - Returns a SimpleSAML configuration instance.
- SimplesamlphpAuthManager::getSimpleSamlInstance in src/
Service/ SimplesamlphpAuthManager.php - Returns a SimpleSAML Simple class instance.
File
- src/
Service/ SimplesamlphpAuthManager.php, line 337
Class
- SimplesamlphpAuthManager
- Service to interact with the SimpleSAMLPHP authentication library.
Namespace
Drupal\simplesamlphp_auth\ServiceCode
protected function checkLibrary() {
if ($dir = Settings::get('simplesamlphp_dir')) {
include_once $dir . '/lib/_autoload.php';
}
if (!class_exists('SimpleSAML\\Configuration')) {
$this->messenger
->addError($this
->t('The SimpleSAMLphp library cannot be found.'));
}
}