Skip to content
Snippets Groups Projects
Commit 81029456 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Remove any 'expire' from the output of the MetadataConverter.

Although strictly 'less correct'. When manually converting
metadata, this is not such a useful note, and frequently gives
rise to trouble when the output is copied to somewhere static.
parent 1bc5ae80
No related branches found
No related tags found
No related merge requests found
...@@ -442,6 +442,13 @@ class Federation ...@@ -442,6 +442,13 @@ class Federation
*/ */
unset($entityMetadata['entityDescriptor']); unset($entityMetadata['entityDescriptor']);
/**
* Remove any expire from the metadata. This is not so useful
* for manually converted metadata and frequently gives rise
* to unexpected results when copy-pased statically.
*/
unset($entityMetadata['expire']);
$text .= '$metadata[' . var_export($entityId, true) . '] = ' $text .= '$metadata[' . var_export($entityId, true) . '] = '
. VarExporter::export($entityMetadata) . ";\n"; . VarExporter::export($entityMetadata) . ";\n";
} }
......
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