/** * Shows the current application version. */ private function printVersionString() { if ($this->isVersionStringPrinted) { return; } echo Version::getVersionString() . PHP_EOL; $this->isVersionStringPrinted = true; }
/** * phpbu start event. * * @param \phpbu\App\Event\App\Start $event */ public function onPhpbuStart(Event\App\Start $event) { $configuration = $event->getConfiguration(); $this->write(Version::getVersionString() . PHP_EOL . PHP_EOL . 'Configuration read from ' . $configuration->getFilename() . PHP_EOL . PHP_EOL); }