Author: Russ
Date: 2010-02-12 11:54:51 +0100 (Fri, 12 Feb 2010)
New Revision: 27935

Modified:
   
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
Log:
[1.4][sfDoctrine2Plugin] Add app and env to task so it works in all scopes


Modified: 
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
===================================================================
--- 
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
  2010-02-12 00:36:51 UTC (rev 27934)
+++ 
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
  2010-02-12 10:54:51 UTC (rev 27935)
@@ -12,7 +12,7 @@
 require_once(dirname(__FILE__).'/sfDoctrineBaseTask.class.php');
 
 /**
- * Check Doctrine version task
+ * Generate Doctrine proxy classes
  *
  * @package    symfony
  * @subpackage doctrine
@@ -27,6 +27,11 @@
    */
   protected function configure()
   {
+    $this->addOptions(array(
+      new sfCommandOption('application', null, 
sfCommandOption::PARAMETER_OPTIONAL, 'The application name', true),
+      new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 
'The environment', 'dev'),
+    ));
+
     $this->aliases = array();
     $this->namespace = 'doctrine';
     $this->name = 'generate-proxies';

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to