|
@@ 165-169 (lines=5) @@
|
| 162 |
|
$remoteType = $this->getRemoteType(); |
| 163 |
|
|
| 164 |
|
$webfinger = $this->getWebfinger($host, Application::APP_SUBJECT); |
| 165 |
|
if ($this->input->getOption('all')) { |
| 166 |
|
$this->output->writeln('- Webfinger on <info>' . $host . '</info>'); |
| 167 |
|
$this->output->writeln(json_encode($webfinger, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
| 168 |
|
$this->output->writeln(''); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
if ($this->input->getOption('all')) { |
| 172 |
|
$circleLink = $this->extractLink(Application::APP_REL, $webfinger); |
|
@@ 171-176 (lines=6) @@
|
| 168 |
|
$this->output->writeln(''); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
if ($this->input->getOption('all')) { |
| 172 |
|
$circleLink = $this->extractLink(Application::APP_REL, $webfinger); |
| 173 |
|
$this->output->writeln('- Information about Circles app on <info>' . $host . '</info>'); |
| 174 |
|
$this->output->writeln(json_encode($circleLink, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
| 175 |
|
$this->output->writeln(''); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
$this->output->writeln('- Available services on <info>' . $host . '</info>'); |
| 179 |
|
foreach ($webfinger->getLinks() as $link) { |
|
@@ 264-269 (lines=6) @@
|
| 261 |
|
); |
| 262 |
|
$this->output->writeln(''); |
| 263 |
|
|
| 264 |
|
if ($this->input->getOption('all')) { |
| 265 |
|
$this->output->writeln(''); |
| 266 |
|
$this->output->writeln('<info>### Complete report ###</info>'); |
| 267 |
|
$this->output->writeln(json_encode($signedRequest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
| 268 |
|
$this->output->writeln(''); |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
if ($remoteSignatory->getUid() !== $localSignatory->getUid()) { |
| 272 |
|
$remoteSignatory->setInstance($host); |