Skip to content
Browse files

Merge pull request #152 from gries/VersionTask

Added version task.
  • Loading branch information...
2 parents 89779d0 + a54db83 commit 104d6ff4447af92ff10f92ea40372048920d2ee1 @willdurand willdurand committed Aug 2, 2012
Showing with 37 additions and 0 deletions.
  1. +37 −0 lib/task/sfPropelVersionTask.class.php
View
37 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');
+ }
+}

0 comments on commit 104d6ff

Please sign in to comment.
Something went wrong with that request. Please try again.