Author: Russ
Date: 2010-02-12 12:17:43 +0100 (Fri, 12 Feb 2010)
New Revision: 27936
Added:
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineCheckSettingsTask.class.php
Log:
[1.4][sfDoctrine2Plugin] Add a task for checking if the project is production
ready (from Doctrine's perspective)
Added:
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineCheckSettingsTask.class.php
===================================================================
---
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineCheckSettingsTask.class.php
(rev 0)
+++
plugins/sfDoctrinePlugin/branches/1.3-2.0/lib/task/sfDoctrineCheckSettingsTask.class.php
2010-02-12 11:17:43 UTC (rev 27936)
@@ -0,0 +1,51 @@
+<?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 if Doctrine is properly configured for a production environment
+ *
+ * @package symfony
+ * @subpackage doctrine
+ * @author Jonathan H. Wage <[email protected]>
+ * @author Russell Flynn <[email protected]>
+ * @version SVN: $Id: sfDoctrineCreateSchemaTask.class.php 15865 2009-02-28
03:34:26Z Jonathan.Wage $
+ */
+class sfDoctrineCheckSettings extends sfDoctrineBaseTask
+{
+ /**
+ * @see sfTask
+ */
+ protected function configure()
+ {
+ $this->aliases = array();
+ $this->namespace = 'doctrine';
+ $this->name = 'check-settings';
+ $this->briefDescription = 'Checks if Doctrine is properly configured for
production environment';
+
+ $this->detailedDescription = <<<EOF
+The [doctrine:check-settings|INFO] task checks if Doctrine is properly
+configured for production environment
+
+ [./symfony doctrine:check-settings|INFO]
+
+EOF;
+ }
+
+ /**
+ * @see sfTask
+ */
+ protected function execute($arguments = array(), $options = array())
+ {
+ $this->callDoctrineCli('Orm:ensure-production-settings');
+ }
+}
--
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.