|
@@ 178-182 (lines=5) @@
|
| 175 |
|
$this->interfaceService->setCurrentInterface($remoteIface); |
| 176 |
|
|
| 177 |
|
$webfinger = $this->getWebfinger($host, Application::APP_SUBJECT); |
| 178 |
|
if ($this->input->getOption('all')) { |
| 179 |
|
$this->output->writeln('- Webfinger on <info>' . $host . '</info>'); |
| 180 |
|
$this->output->writeln(json_encode($webfinger, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
| 181 |
|
$this->output->writeln(''); |
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
if ($this->input->getOption('all')) { |
| 185 |
|
$circleLink = $this->extractLink(Application::APP_REL, $webfinger); |
|
@@ 184-189 (lines=6) @@
|
| 181 |
|
$this->output->writeln(''); |
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
if ($this->input->getOption('all')) { |
| 185 |
|
$circleLink = $this->extractLink(Application::APP_REL, $webfinger); |
| 186 |
|
$this->output->writeln('- Information about Circles app on <info>' . $host . '</info>'); |
| 187 |
|
$this->output->writeln(json_encode($circleLink, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
| 188 |
|
$this->output->writeln(''); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
$this->output->writeln('- Available services on <info>' . $host . '</info>'); |
| 192 |
|
foreach ($webfinger->getLinks() as $link) { |
|
@@ 277-282 (lines=6) @@
|
| 274 |
|
); |
| 275 |
|
$this->output->writeln(''); |
| 276 |
|
|
| 277 |
|
if ($this->input->getOption('all')) { |
| 278 |
|
$this->output->writeln(''); |
| 279 |
|
$this->output->writeln('<info>### Complete report ###</info>'); |
| 280 |
|
$this->output->writeln(json_encode($signedRequest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
| 281 |
|
$this->output->writeln(''); |
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
if ($remoteSignatory->getUid() !== $localSignatory->getUid()) { |
| 285 |
|
$remoteSignatory->setInstance($host) |