File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ require_once (dirname (dirname (dirname (dirname (__FILE__ )))) . '/lib/_autoload.php ' );
5+
6+ if ($ argc < 2 ) {
7+ fwrite (STDERR , "Missing aggregator id. \n" );
8+ exit (1 );
9+ }
10+ $ id = $ argv [1 ];
11+
12+ error_reporting (E_ALL ^ E_NOTICE );
13+ try {
14+ $ aggregator = \SimpleSAML \Module \aggregator2 \Aggregator::getAggregator ($ id );
15+ $ xml = $ aggregator ->getMetadata ();
16+ $ xml = \SimpleSAML \Utils \XML ::formatXMLString ($ xml );
17+ echo $ xml ;
18+ } catch (\Exception $ e ) {
19+ fwrite (STDERR , $ e ->getMessage ()."\n" );
20+ }
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ require_once (dirname (dirname (dirname (dirname (__FILE__ )))) . '/lib/_autoload.php ' );
5+
6+ $ name = basename ($ argv [0 ]);
7+
8+ if ($ argc < 2 ) {
9+ fprintf (STDERR , "$ name: Missing id of aggregator. \n" );
10+ exit (1 );
11+ }
12+
13+ $ id = $ argv [1 ];
14+
15+ $ aggregator = \SimpleSAML \Module \aggregator2 \Aggregator::getAggregator ($ id );
16+ $ aggregator ->updateCache ();
You can’t perform that action at this time.
0 commit comments