Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added version task. #152

Merged
merged 2 commits into from

6 participants

Christoph Rosse Don't Add Me To Your Organization a.k.a The Travis Bot Mike Purcell Jeremy rozwell William Durand
Christoph Rosse

Added a small task that displays the currently installed version of propel.

Don't Add Me To Your Organization a.k.a The Travis Bot

This pull request passes (merged fd52f7e into 89779d0).

Mike Purcell

Awesome, thanks for adding this.

Don't Add Me To Your Organization a.k.a The Travis Bot

This pull request passes (merged a54db83 into 89779d0).

rozwell
Collaborator

:+1:

William Durand willdurand merged commit 104d6ff into from
William Durand
Owner

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 30, 2012
  1. Christoph Rosse

    Added version task.

    gries authored
  2. Christoph Rosse

    fixed class name

    gries authored
This page is out of date. Refresh to see the latest.
Showing with 37 additions and 0 deletions.
  1. +37 −0 lib/task/sfPropelVersionTask.class.php
37 lib/task/sfPropelVersionTask.class.php
View
@@ -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');
+ }
+}
Something went wrong with that request. Please try again.