summaryrefslogtreecommitdiff
path: root/framework/yiic
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
commit341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch)
tree1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/yiic
yii-framework 1.1.10 hinzugefügtHEADmaster
Diffstat (limited to '')
-rw-r--r--framework/yiic15
-rw-r--r--framework/yiic.bat23
-rw-r--r--framework/yiic.php33
3 files changed, 71 insertions, 0 deletions
diff --git a/framework/yiic b/framework/yiic
new file mode 100644
index 0000000..c2f8272
--- /dev/null
+++ b/framework/yiic
@@ -0,0 +1,15 @@
+#!/usr/bin/env php
+<?php
+/**
+ * Yii command line script for Unix/Linux.
+ *
+ * This is the bootstrap script for running yiic on Unix/Linux.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.yiiframework.com/
+ * @copyright Copyright &copy; 2008 Yii Software LLC
+ * @license http://www.yiiframework.com/license/
+ * @version $Id: yiic 702 2009-02-18 19:29:48Z qiang.xue $
+ */
+
+require_once(dirname(__FILE__).'/yiic.php');
diff --git a/framework/yiic.bat b/framework/yiic.bat
new file mode 100644
index 0000000..3bf8fc7
--- /dev/null
+++ b/framework/yiic.bat
@@ -0,0 +1,23 @@
+@echo off
+
+rem -------------------------------------------------------------
+rem Yii command line script for Windows.
+rem
+rem This is the bootstrap script for running yiic on Windows.
+rem
+rem @author Qiang Xue <qiang.xue@gmail.com>
+rem @link http://www.yiiframework.com/
+rem @copyright Copyright &copy; 2008 Yii Software LLC
+rem @license http://www.yiiframework.com/license/
+rem @version $Id: yiic.bat 2485 2010-09-19 17:07:11Z qiang.xue $
+rem -------------------------------------------------------------
+
+@setlocal
+
+set YII_PATH=%~dp0
+
+if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe
+
+"%PHP_COMMAND%" "%YII_PATH%yiic" %*
+
+@endlocal \ No newline at end of file
diff --git a/framework/yiic.php b/framework/yiic.php
new file mode 100644
index 0000000..b057a9c
--- /dev/null
+++ b/framework/yiic.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Yii command line script file.
+ *
+ * This script is meant to be run on command line to execute
+ * one of the pre-defined console commands.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.yiiframework.com/
+ * @copyright Copyright &copy; 2008-2011 Yii Software LLC
+ * @license http://www.yiiframework.com/license/
+ * @version $Id: yiic.php 2799 2011-01-01 19:31:13Z qiang.xue $
+ */
+
+// fix for fcgi
+defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
+
+defined('YII_DEBUG') or define('YII_DEBUG',true);
+
+require_once(dirname(__FILE__).'/yii.php');
+
+if(isset($config))
+{
+ $app=Yii::createConsoleApplication($config);
+ $app->commandRunner->addCommands(YII_PATH.'/cli/commands');
+ $env=@getenv('YII_CONSOLE_COMMANDS');
+ if(!empty($env))
+ $app->commandRunner->addCommands($env);
+}
+else
+ $app=Yii::createConsoleApplication(array('basePath'=>dirname(__FILE__).'/cli'));
+
+$app->run(); \ No newline at end of file