Development

Changeset 7467

You must first sign up to be able to contribute.

Changeset 7467

Show
Ignore:
Timestamp:
02/12/08 10:56:54 (10 months ago)
Author:
fabien
Message:

added sfCommandApplication::getLongVersion() method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/command/sfCommandApplication.class.php

    r7428 r7467  
    203203 
    204204  /** 
     205   * Returns the long version of the application. 
     206   * 
     207   * @param string The long version 
     208   */ 
     209  public function getLongVersion() 
     210  { 
     211    return sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n"; 
     212  } 
     213 
     214  /** 
    205215   * Returns whether the application must be verbose. 
    206216   * 
     
    295305          break; 
    296306        case 'version': 
    297           echo sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n"
     307          echo $this->getLongVersion()
    298308          exit(0); 
    299309      } 
  • branches/1.1/lib/command/sfSymfonyCommandApplication.class.php

    r7438 r7467  
    130130    } 
    131131  } 
     132 
     133  /** 
     134   * @see sfCommandApplication 
     135   */ 
     136  public function getLongVersion() 
     137  { 
     138    return sprintf('%s version %s (%s)', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'), sfConfig::get('sf_symfony_lib_dir'))."\n"; 
     139  } 
    132140}