示例#1
0
文件: Update.php 项目: newup/core
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $wasUpdated = $this->composer->selfUpdate();
     if ($wasUpdated) {
         $this->info('Composer was updated');
         $this->comment($this->composer->getVersion());
     } else {
         $this->comment('Composer is already up to date');
     }
 }
示例#2
0
文件: Version.php 项目: newup/core
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $this->line($this->composer->getVersion());
 }