/** * @Inject logger * * @param callable * @param StringUtility */ public function sayHello($logger, StringUtility $stringUtility) { $name = $this->clientService->userService->getName(); $logger("hello " . $name . " from " . $stringUtility->upper($this->serverName)); }