Skip to content
This repository

Added version task. #152

Merged
merged 2 commits into from over 1 year ago

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
gries commented July 30, 2012

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).

Jeremy
j0k3r commented July 30, 2012

:+1:

rozwell
Collaborator

:+1:

William Durand willdurand merged commit 104d6ff into from August 02, 2012
William Durand willdurand closed this August 02, 2012
William Durand
Owner

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Jul 30, 2012
Christoph Rosse Added version task. fd52f7e
Christoph Rosse fixed class name a54db83
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 37 additions and 0 deletions. Show diff stats Hide diff stats

  1. 37  lib/task/sfPropelVersionTask.class.php
37  lib/task/sfPropelVersionTask.class.php
... ...
@@ -0,0 +1,37 @@
  1
+<?php
  2
+
  3
+/*
  4
+ * This file is part of the symfony package.
  5
+ * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
  6
+ *
  7
+ * For the full copyright and license information, please view the LICENSE
  8
+ * file that was distributed with this source code.
  9
+ */
  10
+
  11
+/**
  12
+ * Displays the currently installed version of Propel
  13
+ *
  14
+ * @package    symfony
  15
+ * @subpackage propel
  16
+ * @author     Christoph Rosse <christoph@rosse.at>
  17
+ */
  18
+class sfPropelVersionTask extends sfPropelBaseTask
  19
+{
  20
+  /**
  21
+   * @see sfTask
  22
+   */
  23
+  protected function configure()
  24
+  {
  25
+    $this->namespace = 'propel';
  26
+    $this->name = 'version';
  27
+    $this->briefDescription = 'Displays the currently installed version of Propel';
  28
+  }
  29
+
  30
+  /**
  31
+   * @see sfTask
  32
+   */
  33
+  protected function execute($arguments = array(), $options = array())
  34
+  { 
  35
+    $this->logBlock(Propel::VERSION, 'INFO');
  36
+  }
  37
+}
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.