diff --git a/modules/core/lib/Auth/Process/AttributeMap.php b/modules/core/lib/Auth/Process/AttributeMap.php index 16cf735ddbc1285e98f175df17d298ea75079ba1..23767bebdf927728387a23d790f7a1b2700a03b8 100644 --- a/modules/core/lib/Auth/Process/AttributeMap.php +++ b/modules/core/lib/Auth/Process/AttributeMap.php @@ -9,6 +9,7 @@ use SimpleSAML\Assert\Assert; use SimpleSAML\Auth; use SimpleSAML\Configuration; use SimpleSAML\Module; +use Symfony\Component\Filesystem\Filesystem; /** * Attribute filter for renaming attributes. @@ -93,7 +94,8 @@ class AttributeMap extends Auth\ProcessingFilter $filePath = $attributenamemapdir . $fileName . '.php'; } - if (!file_exists($filePath)) { + $fileSystem = new Filesystem(); + if (!$fileSystem->exists($filePath)) { throw new Exception('Could not find attribute map file: ' . $filePath); }