From 41f8d264e51d286d817a02d1611db45c8343607a Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Mon, 15 Oct 2007 23:04:39 +0000 Subject: [PATCH] Initial entry. --- lib/Doctrine/Task/Compile.php | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 lib/Doctrine/Task/Compile.php diff --git a/lib/Doctrine/Task/Compile.php b/lib/Doctrine/Task/Compile.php new file mode 100644 index 000000000..794af5304 --- /dev/null +++ b/lib/Doctrine/Task/Compile.php @@ -0,0 +1,44 @@ +. + */ + +/** + * Doctrine_Task_Compile + * + * @package Doctrine + * @subpackage Task + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision: 2761 $ + * @author Jonathan H. Wage + */ +class Doctrine_Task_Compile extends Doctrine_Task +{ + public $description = 'Compile doctrine classes in to one single php file', + $requiredArguments = array(), + $optionalArguments = array('drivers' => 'Specify list of drivers you wish to compile. Ex: mysql|mssql|sqlite', + 'compiled_path' => 'The path where you want to write the compiled doctrine libs.'); + + public function execute() + { + Doctrine_Facade::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array())); + } +} \ No newline at end of file