Exemplo n.º 1
0
 /**
  * Shows the current application version.
  */
 private function printVersionString()
 {
     if ($this->isVersionStringPrinted) {
         return;
     }
     echo Version::getVersionString() . PHP_EOL;
     $this->isVersionStringPrinted = true;
 }
Exemplo n.º 2
0
 /**
  * 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);
 }