yiiapi/framework/yiilite.php
(开头部分) 307KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* Yii bootstrap file.
*
* This file is automatically generated using 'build lite' command.
* It is the result of merging commonly used Yii class files with
* comments and trace statements removed away.
*
* By using this file instead of yii.php, an Yii application may
* improve performance due to the reduction of PHP parsing time.
* The performance improvement is especially obvious when PHP APC extension
* is enabled.
*
* DO NOT modify this file manually.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2013 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: $
* @since 1.0
*/
defined('YII_BEGIN_TIME') or define('YII_BEGIN_TIME',microtime(true));
defined('YII_DEBUG') or define('YII_DEBUG',false);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0);
defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',true);
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',true);
defined('YII_PATH') or define('YII_PATH',dirname(__FILE__));
defined('YII_ZII_PATH') or define('YII_ZII_PATH',YII_PATH.DIRECTORY_SEPARATOR.'zii');
class YiiBase
{
public static $classMap=array();
public static $enableIncludePath=true;
private static $_aliases=array('system'=>YII_PATH,'zii'=>YII_ZII_PATH); // alias => path
private static $_imports=array(); // alias => class name or directory
private static $_includePaths; // list of include paths
private static $_app;
private static $_logger;
public static function getVersion()
{
return '1.1.20-dev';
}
public static function createWebApplication($config=null)
{
return self::createApplication('CWebApplication',$config);
}
public static function createConsoleApplication($config=null)
{
return self::createApplication('CConsoleApplication',$config);
}
public static function createApplication($class,$config=null)
{
return new $class($config);
}
public static function app()
{
return self::$_app;
}
后面还有 8873+ 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
