Author: Russ
Date: 2010-02-11 18:26:44 +0100 (Thu, 11 Feb 2010)
New Revision: 27910

Added:
   
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
Log:
[1.4][sfDoctrine2plugin] Add proxy class generation task


Added: 
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
===================================================================
--- 
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
                          (rev 0)
+++ 
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineGenerateProxiesTask.class.php
  2010-02-11 17:26:44 UTC (rev 27910)
@@ -0,0 +1,50 @@
+<?php
+
+/*
+ * This file is part of the symfony package.
+ * (c) Fabien Potencier <[email protected]>
+ * (c) Jonathan H. Wage <[email protected]>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+require_once(dirname(__FILE__).'/sfDoctrineBaseTask.class.php');
+
+/**
+ * Check Doctrine version task
+ *
+ * @package    symfony
+ * @subpackage doctrine
+ * @author     Jonathan H. Wage <[email protected]>
+ * @author     Russell Flynn <[email protected]>
+ * @version    SVN: $Id: sfDoctrineVersionTask.class.php 15865 2009-02-28 
03:34:26Z Jonathan.Wage $
+ */
+class sfDoctrineGenerateProxiesTask extends sfDoctrineBaseTask
+{
+  /**
+   * @see sfTask
+   */
+  protected function configure()
+  {
+    $this->aliases = array();
+    $this->namespace = 'doctrine';
+    $this->name = 'generate-proxies';
+    $this->briefDescription = 'Generate the Doctrine proxy classes';
+
+    $this->detailedDescription = <<<EOF
+The [doctrine:version|INFO] generates the Doctrine proxy clases using your 
configured proxy directory
+
+  [./symfony doctrine:generate-proxies|INFO]
+
+EOF;
+  }
+
+  /**
+   * @see sfTask
+   */
+  protected function execute($arguments = array(), $options = array())
+  {
+    $this->callDoctrineCli('Orm: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