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