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

@gries

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

@travisbot

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

@digitalprecision

Awesome, thanks for adding this.

@travisbot

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

@rozwell
Collaborator

:+1:

@willdurand willdurand merged commit 104d6ff into propelorm:master
@willdurand
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. @gries

    Added version task.

    gries authored
  2. @gries

    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
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');
+ }
+}
Something went wrong with that request. Please try again.