. */ namespace Doctrine\ORM\Tools\Cli\Tasks; /** * CLI Task to display the doctrine version * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class VersionTask extends AbstractTask { /** * @inheritdoc */ public function extendedHelp() { $printer = $this->getPrinter(); $printer->write('Task: ')->writeln('version', 'KEYWORD') ->write('Synopsis: '); $this->_writeSynopsis($printer); $printer->writeln('Description: Displays the current installed Doctrine version.') ->writeln('Options:') ->writeln('No available options', 'INFO'); } /** * @inheritdoc */ public function basicHelp() { $this->_writeSynopsis($this->getPrinter()); } private function _writeSynopsis($printer) { $printer->writeln('version', 'KEYWORD'); } /** * @inheritdoc */ public function validate() { return true; } /** * Displays the current version of Doctrine * */ public function run() { $this->getPrinter()->writeln('You are currently running Doctrine 2.0.0 Alpha 3', 'INFO'); } }