public function log($sourceItem, $target) { if (is_null($this->logger)) { return; } $targetRealPath = realpath($target); $this->logger->writeln("<comment>Converting {$sourceItem} to {$targetRealPath}...</comment>"); }