Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added version task. #152

Merged
merged 2 commits into from Aug 2, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions lib/task/sfPropelVersionTask.class.php
@@ -0,0 +1,37 @@
<?php

/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* Displays the currently installed version of Propel
*
* @package symfony
* @subpackage propel
* @author Christoph Rosse <christoph@rosse.at>
*/
class sfPropelVersionTask extends sfPropelBaseTask
{
/**
* @see sfTask
*/
protected function configure()
{
$this->namespace = 'propel';
$this->name = 'version';
$this->briefDescription = 'Displays the currently installed version of Propel';
}

/**
* @see sfTask
*/
protected function execute($arguments = array(), $options = array())
{
$this->logBlock(Propel::VERSION, 'INFO');
}
}