Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
debug getLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
svensp committed Aug 27, 2019
1 parent 613559a commit 3e57e63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Blueprint/Infrastructure/Service/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@ public function setKeepStdin(bool $keepStdin) {
* @return Service[]
*/
public function getLinks(): array {
if($this->isMantled())
return [];
if($this->isMantled()) {
echo $this->getName().' has mantled links!'.PHP_EOL;
return [];
}

return $this->links;
}
Expand Down Expand Up @@ -658,6 +660,6 @@ public function setMantleService(Service $mantleService): Service
}

protected function isMantled() {
return $this->mantleService instanceof Service;
return ($this->mantleService instanceof Service);
}
}

0 comments on commit 3e57e63

Please sign in to comment.