Skip to content
Snippets Groups Projects
Commit 5449bf12 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Rewrite AttributeMap using symfony/filesystem

parent e2a25efd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment