首页 > 代码库 > yii 核心类classes.php详解(持续更新中...)

yii 核心类classes.php详解(持续更新中...)

classes.php在yii运行的时候将被自动加载,位于yii2文件夹底下。

<?php
/**
 * Yii core class map.
 *
 * This file is automatically generated by the "build classmap" command under the "build" folder.
 * Do not modify it directly.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

return [
  ‘yii\base\Action‘ => YII2_PATH . ‘/base/Action.php‘,

//yii所有基础控制器(controler)的执行类的基类。在一系列单独文件中,Action提供一系列的方法将复杂的控制器分解成若干细小的action。衍生类必须实现一个名为run的方法,当action被请求的时候,这个方法必须由控制器唤醒。run方法可以有一系列由用户根据名称输入的值进行自动填充。举例来说:如果run()方法如下声明:public function run($id, $type = ‘book‘){...},在action中参数这样提供,[‘id‘ => 1]。然后run()方法将被像run(1)这样自动唤醒。

它的公共属性有:

$behaviors属性,类型为yii\base\Behavior[],连接到组件上的行为列表,继承自yii\base\Component。

$controller属性,yii\base\Controller,拥有这个action的控制器,来自yiii\base\Action。

$idstring属性,action的id值,来自yii\base\Action。

$uniqueId属性,整个应用中改action的唯一id,来自yii\base\Action。

公共方法:

技术分享

__call(),调用非类方法的命名方法,继承自yii\base\Components类。这个方法将检查如果任何相关联的行为有命名方法且可用将执行它。不要直接将其当作一个PHP魔术方法进行调用,魔术方法会在当一个未知方法被调用的时候隐式调起。

__clone(),此方法在以克隆一个已存在的对象的方式创建一个对象之后调起,继承自yii\base\Components类。它移除所有行为,因为他们关联到了旧的对象。

__construct(),构造器方法,来自yii\base\Action类。用来依据传入的配置文件进行初始化的。

__get(),返回组件属性,继承自yii\base\Components类。

__isset(),检测属性值是否为空,继承自yii\base\Components类。

__set(),设置组件属性值,继承自yii\base\Components类。

__unset(),设置组件属性值为空,继承自yii\base\Components类。

AttachBehavior(),关联一个属性到组件,继承自yii\base\Components类。

AttachBehaviors(),关联一组属性到组件,继承自yii\base\Components类。

canGetProperty(),如果属性可读返回一个指定值,继承自yii\base\Components类。

canSetProperty(),如果属性可设置返回一个指定值,继承自yii\base\Components类。

className(),返回该类完整合法的类名,继承自yii\base\Components类。

detachBehavior(),解除一个组件的关联行为,继承自yii\base\Components类。

detachBehaviors(),解除全部组件的关联行为,继承自yii\base\Components类。

ensureBehaviors(),确认在behavior()里申明的行为被关联到这个组件,继承自yii\base\Components类。

getBehavior(),返回命名的行为对象,继承自继承自yii\base\Components类。

getBehaviors(),返回所有关联到组件的行为对象,继承自继承自yii\base\Components类。

getUniqueId(),返回贯穿整个应用的action的独立ID,继承自yii\base\Components类。

hasEventHandles(),返回是否关联到命名事件的任何句柄的一个指定值,继承自yii\base\Components类。

hasMethod(),返回一个方法是否定义的指定值,继承自yii\base\Components类。

hasProperty(),返回一个组件的谋属性是否定义的指定值,继承自yii\base\Components类。

init(),初始化对象,继承自yii\base\Components类。

off(),从组件上解绑一个存在的事件句柄,继承自yii\base\Components类。

on(),绑定一个事件句柄,继承自yii\base\Components类。

runWithParams(),用特定的参数运行一个action,继承自yii\base\Components类。

trigger(),触发一个事件,继承自yii\base\Components类。

受保护的方法:

afterRun(),方法被调用之后执行,来自继承自yii\base\Action类。

beforeRun(),方法被调用之前执行,来自继承自yii\base\Action类。

属性详情:

$Controller,拥有这个方法的控制器。

$id,action的id值。

$uniqueId,只可读的属性,贯穿整个应用的action的唯一id。

__construct,构造方法。

其他属性在前面已有解释,此处略。详情见官方文档:http://www.yiichina.com/doc/api/2.0/yii-base-action

  ‘yii\base\ActionEvent‘ => YII2_PATH . ‘/base/ActionEvent.php‘,  
ActionEvent代表用于一个action的时间参数,通过设置$isValid属性,可以控制是否继续运行action. 
公共属性 
技术分享
$action,当前被执行的方法,来自yii\base\ActionEvent。
$data,当绑定一个事件句柄时传递给yii\base\Componet()的数据,来自yii\base\Event。
$handled,是否是一个事件的句柄,来自yii\base\Event。
$isValid,是否就运行一个action,来自yii\base\ActionEvent。eventHandler,yii\base\Controller::EVENT_BEFORE_ACTION可以设置决定是否继续运行action。
$name,事件名,来自yii\base\Event。
$result,action的结果,来自yii\base\ActionEvent。
$sender,这个事件的发送器,来自yii\base\Event。
公共方法,跟Action同,此处不赘述。
 ‘yii\base\ActionFilter‘ => YII2_PATH . ‘/base/ActionFilter.php‘,    
ActionFilter是一个action 过滤器的基类,一个action过滤器将在action执行工作流中加入,通过响应到beforeAction和afterAction事件之间,由模块和控制器触发。你可以查看yii\filters\AccessControl,yii\filters\PageCache和yii\filters\HttpCache作为例子了解如何使用它。
公共属性:
技术分享

$except,这个过滤器不被应用的action的id列表。

$only,这个过滤器应该被应用的action的id列表。

$owner,这个行为的拥有者。

公共方法同上不赘述。

受保护的方法,isActive(),返回一个给定值标识对于一个action其过滤器是否活动。

  ‘yii\base\Application‘ => YII2_PATH . ‘/base/Application.php‘,
  ‘yii\base\ArrayAccessTrait‘ => YII2_PATH . ‘/base/ArrayAccessTrait.php‘,
  ‘yii\base\Arrayable‘ => YII2_PATH . ‘/base/Arrayable.php‘,
  ‘yii\base\ArrayableTrait‘ => YII2_PATH . ‘/base/ArrayableTrait.php‘,
  ‘yii\base\Behavior‘ => YII2_PATH . ‘/base/Behavior.php‘,
  ‘yii\base\BootstrapInterface‘ => YII2_PATH . ‘/base/BootstrapInterface.php‘,
  ‘yii\base\Component‘ => YII2_PATH . ‘/base/Component.php‘,
  ‘yii\base\Controller‘ => YII2_PATH . ‘/base/Controller.php‘,
  ‘yii\base\DynamicModel‘ => YII2_PATH . ‘/base/DynamicModel.php‘,
  ‘yii\base\ErrorException‘ => YII2_PATH . ‘/base/ErrorException.php‘,
  ‘yii\base\ErrorHandler‘ => YII2_PATH . ‘/base/ErrorHandler.php‘,
  ‘yii\base\Event‘ => YII2_PATH . ‘/base/Event.php‘,
  ‘yii\base\Exception‘ => YII2_PATH . ‘/base/Exception.php‘,
  ‘yii\base\ExitException‘ => YII2_PATH . ‘/base/ExitException.php‘,
  ‘yii\base\InlineAction‘ => YII2_PATH . ‘/base/InlineAction.php‘,
  ‘yii\base\InvalidCallException‘ => YII2_PATH . ‘/base/InvalidCallException.php‘,
  ‘yii\base\InvalidConfigException‘ => YII2_PATH . ‘/base/InvalidConfigException.php‘,
  ‘yii\base\InvalidParamException‘ => YII2_PATH . ‘/base/InvalidParamException.php‘,
  ‘yii\base\InvalidRouteException‘ => YII2_PATH . ‘/base/InvalidRouteException.php‘,
  ‘yii\base\InvalidValueException‘ => YII2_PATH . ‘/base/InvalidValueException.php‘,
  ‘yii\base\Model‘ => YII2_PATH . ‘/base/Model.php‘,
  ‘yii\base\ModelEvent‘ => YII2_PATH . ‘/base/ModelEvent.php‘,
  ‘yii\base\Module‘ => YII2_PATH . ‘/base/Module.php‘,
  ‘yii\base\NotSupportedException‘ => YII2_PATH . ‘/base/NotSupportedException.php‘,
  ‘yii\base\Object‘ => YII2_PATH . ‘/base/Object.php‘,
  ‘yii\base\Request‘ => YII2_PATH . ‘/base/Request.php‘,
  ‘yii\base\Response‘ => YII2_PATH . ‘/base/Response.php‘,
  ‘yii\base\Security‘ => YII2_PATH . ‘/base/Security.php‘,
  ‘yii\base\Theme‘ => YII2_PATH . ‘/base/Theme.php‘,
  ‘yii\base\UnknownClassException‘ => YII2_PATH . ‘/base/UnknownClassException.php‘,
  ‘yii\base\UnknownMethodException‘ => YII2_PATH . ‘/base/UnknownMethodException.php‘,
  ‘yii\base\UnknownPropertyException‘ => YII2_PATH . ‘/base/UnknownPropertyException.php‘,
  ‘yii\base\UserException‘ => YII2_PATH . ‘/base/UserException.php‘,
  ‘yii\base\View‘ => YII2_PATH . ‘/base/View.php‘,
  ‘yii\base\ViewContextInterface‘ => YII2_PATH . ‘/base/ViewContextInterface.php‘,
  ‘yii\base\ViewEvent‘ => YII2_PATH . ‘/base/ViewEvent.php‘,
  ‘yii\base\ViewRenderer‘ => YII2_PATH . ‘/base/ViewRenderer.php‘,
  ‘yii\base\Widget‘ => YII2_PATH . ‘/base/Widget.php‘,
  ‘yii\behaviors\AttributeBehavior‘ => YII2_PATH . ‘/behaviors/AttributeBehavior.php‘,
  ‘yii\behaviors\BlameableBehavior‘ => YII2_PATH . ‘/behaviors/BlameableBehavior.php‘,
  ‘yii\behaviors\SluggableBehavior‘ => YII2_PATH . ‘/behaviors/SluggableBehavior.php‘,
  ‘yii\behaviors\TimestampBehavior‘ => YII2_PATH . ‘/behaviors/TimestampBehavior.php‘,
  ‘yii\caching\ApcCache‘ => YII2_PATH . ‘/caching/ApcCache.php‘,
  ‘yii\caching\ArrayCache‘ => YII2_PATH . ‘/caching/ArrayCache.php‘,
  ‘yii\caching\Cache‘ => YII2_PATH . ‘/caching/Cache.php‘,
  ‘yii\caching\ChainedDependency‘ => YII2_PATH . ‘/caching/ChainedDependency.php‘,
  ‘yii\caching\DbCache‘ => YII2_PATH . ‘/caching/DbCache.php‘,
  ‘yii\caching\DbDependency‘ => YII2_PATH . ‘/caching/DbDependency.php‘,
  ‘yii\caching\Dependency‘ => YII2_PATH . ‘/caching/Dependency.php‘,
  ‘yii\caching\DummyCache‘ => YII2_PATH . ‘/caching/DummyCache.php‘,
  ‘yii\caching\ExpressionDependency‘ => YII2_PATH . ‘/caching/ExpressionDependency.php‘,
  ‘yii\caching\FileCache‘ => YII2_PATH . ‘/caching/FileCache.php‘,
  ‘yii\caching\FileDependency‘ => YII2_PATH . ‘/caching/FileDependency.php‘,
  ‘yii\caching\MemCache‘ => YII2_PATH . ‘/caching/MemCache.php‘,
  ‘yii\caching\MemCacheServer‘ => YII2_PATH . ‘/caching/MemCacheServer.php‘,
  ‘yii\caching\TagDependency‘ => YII2_PATH . ‘/caching/TagDependency.php‘,
  ‘yii\caching\WinCache‘ => YII2_PATH . ‘/caching/WinCache.php‘,
  ‘yii\caching\XCache‘ => YII2_PATH . ‘/caching/XCache.php‘,
  ‘yii\caching\ZendDataCache‘ => YII2_PATH . ‘/caching/ZendDataCache.php‘,
  ‘yii\captcha\Captcha‘ => YII2_PATH . ‘/captcha/Captcha.php‘,
  ‘yii\captcha\CaptchaAction‘ => YII2_PATH . ‘/captcha/CaptchaAction.php‘,
  ‘yii\captcha\CaptchaAsset‘ => YII2_PATH . ‘/captcha/CaptchaAsset.php‘,
  ‘yii\captcha\CaptchaValidator‘ => YII2_PATH . ‘/captcha/CaptchaValidator.php‘,
  ‘yii\data\ActiveDataProvider‘ => YII2_PATH . ‘/data/ActiveDataProvider.php‘,
  ‘yii\data\ArrayDataProvider‘ => YII2_PATH . ‘/data/ArrayDataProvider.php‘,
  ‘yii\data\BaseDataProvider‘ => YII2_PATH . ‘/data/BaseDataProvider.php‘,
  ‘yii\data\DataProviderInterface‘ => YII2_PATH . ‘/data/DataProviderInterface.php‘,
  ‘yii\data\Pagination‘ => YII2_PATH . ‘/data/Pagination.php‘,
  ‘yii\data\Sort‘ => YII2_PATH . ‘/data/Sort.php‘,
  ‘yii\data\SqlDataProvider‘ => YII2_PATH . ‘/data/SqlDataProvider.php‘,
  ‘yii\db\ActiveQuery‘ => YII2_PATH . ‘/db/ActiveQuery.php‘,
  ‘yii\db\ActiveQueryInterface‘ => YII2_PATH . ‘/db/ActiveQueryInterface.php‘,
  ‘yii\db\ActiveQueryTrait‘ => YII2_PATH . ‘/db/ActiveQueryTrait.php‘,
  ‘yii\db\ActiveRecord‘ => YII2_PATH . ‘/db/ActiveRecord.php‘,
  ‘yii\db\ActiveRecordInterface‘ => YII2_PATH . ‘/db/ActiveRecordInterface.php‘,
  ‘yii\db\ActiveRelationTrait‘ => YII2_PATH . ‘/db/ActiveRelationTrait.php‘,
  ‘yii\db\AfterSaveEvent‘ => YII2_PATH . ‘/db/AfterSaveEvent.php‘,
  ‘yii\db\BaseActiveRecord‘ => YII2_PATH . ‘/db/BaseActiveRecord.php‘,
  ‘yii\db\BatchQueryResult‘ => YII2_PATH . ‘/db/BatchQueryResult.php‘,
  ‘yii\db\ColumnSchema‘ => YII2_PATH . ‘/db/ColumnSchema.php‘,
  ‘yii\db\Command‘ => YII2_PATH . ‘/db/Command.php‘,
  ‘yii\db\Connection‘ => YII2_PATH . ‘/db/Connection.php‘,
  ‘yii\db\DataReader‘ => YII2_PATH . ‘/db/DataReader.php‘,
  ‘yii\db\Exception‘ => YII2_PATH . ‘/db/Exception.php‘,
  ‘yii\db\Expression‘ => YII2_PATH . ‘/db/Expression.php‘,
  ‘yii\db\IntegrityException‘ => YII2_PATH . ‘/db/IntegrityException.php‘,
  ‘yii\db\Migration‘ => YII2_PATH . ‘/db/Migration.php‘,
  ‘yii\db\MigrationInterface‘ => YII2_PATH . ‘/db/MigrationInterface.php‘,
  ‘yii\db\Query‘ => YII2_PATH . ‘/db/Query.php‘,
  ‘yii\db\QueryBuilder‘ => YII2_PATH . ‘/db/QueryBuilder.php‘,
  ‘yii\db\QueryInterface‘ => YII2_PATH . ‘/db/QueryInterface.php‘,
  ‘yii\db\QueryTrait‘ => YII2_PATH . ‘/db/QueryTrait.php‘,
  ‘yii\db\Schema‘ => YII2_PATH . ‘/db/Schema.php‘,
  ‘yii\db\StaleObjectException‘ => YII2_PATH . ‘/db/StaleObjectException.php‘,
  ‘yii\db\TableSchema‘ => YII2_PATH . ‘/db/TableSchema.php‘,
  ‘yii\db\Transaction‘ => YII2_PATH . ‘/db/Transaction.php‘,
  ‘yii\db\cubrid\QueryBuilder‘ => YII2_PATH . ‘/db/cubrid/QueryBuilder.php‘,
  ‘yii\db\cubrid\Schema‘ => YII2_PATH . ‘/db/cubrid/Schema.php‘,
  ‘yii\db\mssql\PDO‘ => YII2_PATH . ‘/db/mssql/PDO.php‘,
  ‘yii\db\mssql\QueryBuilder‘ => YII2_PATH . ‘/db/mssql/QueryBuilder.php‘,
  ‘yii\db\mssql\Schema‘ => YII2_PATH . ‘/db/mssql/Schema.php‘,
  ‘yii\db\mssql\SqlsrvPDO‘ => YII2_PATH . ‘/db/mssql/SqlsrvPDO.php‘,
  ‘yii\db\mssql\TableSchema‘ => YII2_PATH . ‘/db/mssql/TableSchema.php‘,
  ‘yii\db\mysql\QueryBuilder‘ => YII2_PATH . ‘/db/mysql/QueryBuilder.php‘,
  ‘yii\db\mysql\Schema‘ => YII2_PATH . ‘/db/mysql/Schema.php‘,
  ‘yii\db\oci\QueryBuilder‘ => YII2_PATH . ‘/db/oci/QueryBuilder.php‘,
  ‘yii\db\oci\Schema‘ => YII2_PATH . ‘/db/oci/Schema.php‘,
  ‘yii\db\pgsql\QueryBuilder‘ => YII2_PATH . ‘/db/pgsql/QueryBuilder.php‘,
  ‘yii\db\pgsql\Schema‘ => YII2_PATH . ‘/db/pgsql/Schema.php‘,
  ‘yii\db\sqlite\QueryBuilder‘ => YII2_PATH . ‘/db/sqlite/QueryBuilder.php‘,
  ‘yii\db\sqlite\Schema‘ => YII2_PATH . ‘/db/sqlite/Schema.php‘,
  ‘yii\di\Container‘ => YII2_PATH . ‘/di/Container.php‘,
  ‘yii\di\Instance‘ => YII2_PATH . ‘/di/Instance.php‘,
  ‘yii\di\ServiceLocator‘ => YII2_PATH . ‘/di/ServiceLocator.php‘,
  ‘yii\filters\AccessControl‘ => YII2_PATH . ‘/filters/AccessControl.php‘,
  ‘yii\filters\AccessRule‘ => YII2_PATH . ‘/filters/AccessRule.php‘,
  ‘yii\filters\ContentNegotiator‘ => YII2_PATH . ‘/filters/ContentNegotiator.php‘,
  ‘yii\filters\Cors‘ => YII2_PATH . ‘/filters/Cors.php‘,
  ‘yii\filters\HttpCache‘ => YII2_PATH . ‘/filters/HttpCache.php‘,
  ‘yii\filters\PageCache‘ => YII2_PATH . ‘/filters/PageCache.php‘,
  ‘yii\filters\RateLimitInterface‘ => YII2_PATH . ‘/filters/RateLimitInterface.php‘,
  ‘yii\filters\RateLimiter‘ => YII2_PATH . ‘/filters/RateLimiter.php‘,
  ‘yii\filters\VerbFilter‘ => YII2_PATH . ‘/filters/VerbFilter.php‘,
  ‘yii\filters\auth\AuthInterface‘ => YII2_PATH . ‘/filters/auth/AuthInterface.php‘,
  ‘yii\filters\auth\AuthMethod‘ => YII2_PATH . ‘/filters/auth/AuthMethod.php‘,
  ‘yii\filters\auth\CompositeAuth‘ => YII2_PATH . ‘/filters/auth/CompositeAuth.php‘,
  ‘yii\filters\auth\HttpBasicAuth‘ => YII2_PATH . ‘/filters/auth/HttpBasicAuth.php‘,
  ‘yii\filters\auth\HttpBearerAuth‘ => YII2_PATH . ‘/filters/auth/HttpBearerAuth.php‘,
  ‘yii\filters\auth\QueryParamAuth‘ => YII2_PATH . ‘/filters/auth/QueryParamAuth.php‘,
  ‘yii\grid\ActionColumn‘ => YII2_PATH . ‘/grid/ActionColumn.php‘,
  ‘yii\grid\CheckboxColumn‘ => YII2_PATH . ‘/grid/CheckboxColumn.php‘,
  ‘yii\grid\Column‘ => YII2_PATH . ‘/grid/Column.php‘,
  ‘yii\grid\DataColumn‘ => YII2_PATH . ‘/grid/DataColumn.php‘,
  ‘yii\grid\GridView‘ => YII2_PATH . ‘/grid/GridView.php‘,
  ‘yii\grid\GridViewAsset‘ => YII2_PATH . ‘/grid/GridViewAsset.php‘,
  ‘yii\grid\SerialColumn‘ => YII2_PATH . ‘/grid/SerialColumn.php‘,
  ‘yii\helpers\ArrayHelper‘ => YII2_PATH . ‘/helpers/ArrayHelper.php‘,
  ‘yii\helpers\BaseArrayHelper‘ => YII2_PATH . ‘/helpers/BaseArrayHelper.php‘,
  ‘yii\helpers\BaseConsole‘ => YII2_PATH . ‘/helpers/BaseConsole.php‘,
  ‘yii\helpers\BaseFileHelper‘ => YII2_PATH . ‘/helpers/BaseFileHelper.php‘,
  ‘yii\helpers\BaseFormatConverter‘ => YII2_PATH . ‘/helpers/BaseFormatConverter.php‘,
  ‘yii\helpers\BaseHtml‘ => YII2_PATH . ‘/helpers/BaseHtml.php‘,
  ‘yii\helpers\BaseHtmlPurifier‘ => YII2_PATH . ‘/helpers/BaseHtmlPurifier.php‘,
  ‘yii\helpers\BaseInflector‘ => YII2_PATH . ‘/helpers/BaseInflector.php‘,
  ‘yii\helpers\BaseJson‘ => YII2_PATH . ‘/helpers/BaseJson.php‘,
  ‘yii\helpers\BaseMarkdown‘ => YII2_PATH . ‘/helpers/BaseMarkdown.php‘,
  ‘yii\helpers\BaseStringHelper‘ => YII2_PATH . ‘/helpers/BaseStringHelper.php‘,
  ‘yii\helpers\BaseUrl‘ => YII2_PATH . ‘/helpers/BaseUrl.php‘,
  ‘yii\helpers\BaseVarDumper‘ => YII2_PATH . ‘/helpers/BaseVarDumper.php‘,
  ‘yii\helpers\Console‘ => YII2_PATH . ‘/helpers/Console.php‘,
  ‘yii\helpers\FileHelper‘ => YII2_PATH . ‘/helpers/FileHelper.php‘,
  ‘yii\helpers\FormatConverter‘ => YII2_PATH . ‘/helpers/FormatConverter.php‘,
  ‘yii\helpers\Html‘ => YII2_PATH . ‘/helpers/Html.php‘,
  ‘yii\helpers\HtmlPurifier‘ => YII2_PATH . ‘/helpers/HtmlPurifier.php‘,
  ‘yii\helpers\Inflector‘ => YII2_PATH . ‘/helpers/Inflector.php‘,
  ‘yii\helpers\Json‘ => YII2_PATH . ‘/helpers/Json.php‘,
  ‘yii\helpers\Markdown‘ => YII2_PATH . ‘/helpers/Markdown.php‘,
  ‘yii\helpers\StringHelper‘ => YII2_PATH . ‘/helpers/StringHelper.php‘,
  ‘yii\helpers\Url‘ => YII2_PATH . ‘/helpers/Url.php‘,
  ‘yii\helpers\VarDumper‘ => YII2_PATH . ‘/helpers/VarDumper.php‘,
  ‘yii\i18n\DbMessageSource‘ => YII2_PATH . ‘/i18n/DbMessageSource.php‘,
  ‘yii\i18n\Formatter‘ => YII2_PATH . ‘/i18n/Formatter.php‘,
  ‘yii\i18n\GettextFile‘ => YII2_PATH . ‘/i18n/GettextFile.php‘,
  ‘yii\i18n\GettextMessageSource‘ => YII2_PATH . ‘/i18n/GettextMessageSource.php‘,
  ‘yii\i18n\GettextMoFile‘ => YII2_PATH . ‘/i18n/GettextMoFile.php‘,
  ‘yii\i18n\GettextPoFile‘ => YII2_PATH . ‘/i18n/GettextPoFile.php‘,
  ‘yii\i18n\I18N‘ => YII2_PATH . ‘/i18n/I18N.php‘,
  ‘yii\i18n\MessageFormatter‘ => YII2_PATH . ‘/i18n/MessageFormatter.php‘,
  ‘yii\i18n\MessageSource‘ => YII2_PATH . ‘/i18n/MessageSource.php‘,
  ‘yii\i18n\MissingTranslationEvent‘ => YII2_PATH . ‘/i18n/MissingTranslationEvent.php‘,
  ‘yii\i18n\PhpMessageSource‘ => YII2_PATH . ‘/i18n/PhpMessageSource.php‘,
  ‘yii\log\DbTarget‘ => YII2_PATH . ‘/log/DbTarget.php‘,
  ‘yii\log\Dispatcher‘ => YII2_PATH . ‘/log/Dispatcher.php‘,
  ‘yii\log\EmailTarget‘ => YII2_PATH . ‘/log/EmailTarget.php‘,
  ‘yii\log\FileTarget‘ => YII2_PATH . ‘/log/FileTarget.php‘,
  ‘yii\log\Logger‘ => YII2_PATH . ‘/log/Logger.php‘,
  ‘yii\log\SyslogTarget‘ => YII2_PATH . ‘/log/SyslogTarget.php‘,
  ‘yii\log\Target‘ => YII2_PATH . ‘/log/Target.php‘,
  ‘yii\mail\BaseMailer‘ => YII2_PATH . ‘/mail/BaseMailer.php‘,
  ‘yii\mail\BaseMessage‘ => YII2_PATH . ‘/mail/BaseMessage.php‘,
  ‘yii\mail\MailEvent‘ => YII2_PATH . ‘/mail/MailEvent.php‘,
  ‘yii\mail\MailerInterface‘ => YII2_PATH . ‘/mail/MailerInterface.php‘,
  ‘yii\mail\MessageInterface‘ => YII2_PATH . ‘/mail/MessageInterface.php‘,
  ‘yii\mutex\DbMutex‘ => YII2_PATH . ‘/mutex/DbMutex.php‘,
  ‘yii\mutex\FileMutex‘ => YII2_PATH . ‘/mutex/FileMutex.php‘,
  ‘yii\mutex\Mutex‘ => YII2_PATH . ‘/mutex/Mutex.php‘,
  ‘yii\mutex\MysqlMutex‘ => YII2_PATH . ‘/mutex/MysqlMutex.php‘,
  ‘yii\rbac\Assignment‘ => YII2_PATH . ‘/rbac/Assignment.php‘,
  ‘yii\rbac\BaseManager‘ => YII2_PATH . ‘/rbac/BaseManager.php‘,
  ‘yii\rbac\DbManager‘ => YII2_PATH . ‘/rbac/DbManager.php‘,
  ‘yii\rbac\Item‘ => YII2_PATH . ‘/rbac/Item.php‘,
  ‘yii\rbac\ManagerInterface‘ => YII2_PATH . ‘/rbac/ManagerInterface.php‘,
  ‘yii\rbac\Permission‘ => YII2_PATH . ‘/rbac/Permission.php‘,
  ‘yii\rbac\PhpManager‘ => YII2_PATH . ‘/rbac/PhpManager.php‘,
  ‘yii\rbac\Role‘ => YII2_PATH . ‘/rbac/Role.php‘,
  ‘yii\rbac\Rule‘ => YII2_PATH . ‘/rbac/Rule.php‘,
  ‘yii\requirements\YiiRequirementChecker‘ => YII2_PATH . ‘/requirements/YiiRequirementChecker.php‘,
  ‘yii\rest\Action‘ => YII2_PATH . ‘/rest/Action.php‘,
  ‘yii\rest\ActiveController‘ => YII2_PATH . ‘/rest/ActiveController.php‘,
  ‘yii\rest\Controller‘ => YII2_PATH . ‘/rest/Controller.php‘,
  ‘yii\rest\CreateAction‘ => YII2_PATH . ‘/rest/CreateAction.php‘,
  ‘yii\rest\DeleteAction‘ => YII2_PATH . ‘/rest/DeleteAction.php‘,
  ‘yii\rest\IndexAction‘ => YII2_PATH . ‘/rest/IndexAction.php‘,
  ‘yii\rest\OptionsAction‘ => YII2_PATH . ‘/rest/OptionsAction.php‘,
  ‘yii\rest\Serializer‘ => YII2_PATH . ‘/rest/Serializer.php‘,
  ‘yii\rest\UpdateAction‘ => YII2_PATH . ‘/rest/UpdateAction.php‘,
  ‘yii\rest\UrlRule‘ => YII2_PATH . ‘/rest/UrlRule.php‘,
  ‘yii\rest\ViewAction‘ => YII2_PATH . ‘/rest/ViewAction.php‘,
  ‘yii\test\ActiveFixture‘ => YII2_PATH . ‘/test/ActiveFixture.php‘,
  ‘yii\test\ArrayFixture‘ => YII2_PATH . ‘/test/ArrayFixture.php‘,
  ‘yii\test\BaseActiveFixture‘ => YII2_PATH . ‘/test/BaseActiveFixture.php‘,
  ‘yii\test\DbFixture‘ => YII2_PATH . ‘/test/DbFixture.php‘,
  ‘yii\test\Fixture‘ => YII2_PATH . ‘/test/Fixture.php‘,
  ‘yii\test\FixtureTrait‘ => YII2_PATH . ‘/test/FixtureTrait.php‘,
  ‘yii\test\InitDbFixture‘ => YII2_PATH . ‘/test/InitDbFixture.php‘,
  ‘yii\validators\BooleanValidator‘ => YII2_PATH . ‘/validators/BooleanValidator.php‘,
  ‘yii\validators\CompareValidator‘ => YII2_PATH . ‘/validators/CompareValidator.php‘,
  ‘yii\validators\DateValidator‘ => YII2_PATH . ‘/validators/DateValidator.php‘,
  ‘yii\validators\DefaultValueValidator‘ => YII2_PATH . ‘/validators/DefaultValueValidator.php‘,
  ‘yii\validators\EmailValidator‘ => YII2_PATH . ‘/validators/EmailValidator.php‘,
  ‘yii\validators\ExistValidator‘ => YII2_PATH . ‘/validators/ExistValidator.php‘,
  ‘yii\validators\FileValidator‘ => YII2_PATH . ‘/validators/FileValidator.php‘,
  ‘yii\validators\FilterValidator‘ => YII2_PATH . ‘/validators/FilterValidator.php‘,
  ‘yii\validators\ImageValidator‘ => YII2_PATH . ‘/validators/ImageValidator.php‘,
  ‘yii\validators\InlineValidator‘ => YII2_PATH . ‘/validators/InlineValidator.php‘,
  ‘yii\validators\NumberValidator‘ => YII2_PATH . ‘/validators/NumberValidator.php‘,
  ‘yii\validators\PunycodeAsset‘ => YII2_PATH . ‘/validators/PunycodeAsset.php‘,
  ‘yii\validators\RangeValidator‘ => YII2_PATH . ‘/validators/RangeValidator.php‘,
  ‘yii\validators\RegularExpressionValidator‘ => YII2_PATH . ‘/validators/RegularExpressionValidator.php‘,
  ‘yii\validators\RequiredValidator‘ => YII2_PATH . ‘/validators/RequiredValidator.php‘,
  ‘yii\validators\SafeValidator‘ => YII2_PATH . ‘/validators/SafeValidator.php‘,
  ‘yii\validators\StringValidator‘ => YII2_PATH . ‘/validators/StringValidator.php‘,
  ‘yii\validators\UniqueValidator‘ => YII2_PATH . ‘/validators/UniqueValidator.php‘,
  ‘yii\validators\UrlValidator‘ => YII2_PATH . ‘/validators/UrlValidator.php‘,
  ‘yii\validators\ValidationAsset‘ => YII2_PATH . ‘/validators/ValidationAsset.php‘,
  ‘yii\validators\Validator‘ => YII2_PATH . ‘/validators/Validator.php‘,
  ‘yii\web\Application‘ => YII2_PATH . ‘/web/Application.php‘,
  ‘yii\web\AssetBundle‘ => YII2_PATH . ‘/web/AssetBundle.php‘,
  ‘yii\web\AssetConverter‘ => YII2_PATH . ‘/web/AssetConverter.php‘,
  ‘yii\web\AssetConverterInterface‘ => YII2_PATH . ‘/web/AssetConverterInterface.php‘,
  ‘yii\web\AssetManager‘ => YII2_PATH . ‘/web/AssetManager.php‘,
  ‘yii\web\BadRequestHttpException‘ => YII2_PATH . ‘/web/BadRequestHttpException.php‘,
  ‘yii\web\CacheSession‘ => YII2_PATH . ‘/web/CacheSession.php‘,
  ‘yii\web\CompositeUrlRule‘ => YII2_PATH . ‘/web/CompositeUrlRule.php‘,
  ‘yii\web\ConflictHttpException‘ => YII2_PATH . ‘/web/ConflictHttpException.php‘,
  ‘yii\web\Controller‘ => YII2_PATH . ‘/web/Controller.php‘,
  ‘yii\web\Cookie‘ => YII2_PATH . ‘/web/Cookie.php‘,
  ‘yii\web\CookieCollection‘ => YII2_PATH . ‘/web/CookieCollection.php‘,
  ‘yii\web\DbSession‘ => YII2_PATH . ‘/web/DbSession.php‘,
  ‘yii\web\ErrorAction‘ => YII2_PATH . ‘/web/ErrorAction.php‘,
  ‘yii\web\ErrorHandler‘ => YII2_PATH . ‘/web/ErrorHandler.php‘,
  ‘yii\web\ForbiddenHttpException‘ => YII2_PATH . ‘/web/ForbiddenHttpException.php‘,
  ‘yii\web\GoneHttpException‘ => YII2_PATH . ‘/web/GoneHttpException.php‘,
  ‘yii\web\GroupUrlRule‘ => YII2_PATH . ‘/web/GroupUrlRule.php‘,
  ‘yii\web\HeaderCollection‘ => YII2_PATH . ‘/web/HeaderCollection.php‘,
  ‘yii\web\HtmlResponseFormatter‘ => YII2_PATH . ‘/web/HtmlResponseFormatter.php‘,
  ‘yii\web\HttpException‘ => YII2_PATH . ‘/web/HttpException.php‘,
  ‘yii\web\IdentityInterface‘ => YII2_PATH . ‘/web/IdentityInterface.php‘,
  ‘yii\web\JqueryAsset‘ => YII2_PATH . ‘/web/JqueryAsset.php‘,
  ‘yii\web\JsExpression‘ => YII2_PATH . ‘/web/JsExpression.php‘,
  ‘yii\web\JsonParser‘ => YII2_PATH . ‘/web/JsonParser.php‘,
  ‘yii\web\JsonResponseFormatter‘ => YII2_PATH . ‘/web/JsonResponseFormatter.php‘,
  ‘yii\web\Link‘ => YII2_PATH . ‘/web/Link.php‘,
  ‘yii\web\Linkable‘ => YII2_PATH . ‘/web/Linkable.php‘,
  ‘yii\web\MethodNotAllowedHttpException‘ => YII2_PATH . ‘/web/MethodNotAllowedHttpException.php‘,
  ‘yii\web\NotAcceptableHttpException‘ => YII2_PATH . ‘/web/NotAcceptableHttpException.php‘,
  ‘yii\web\NotFoundHttpException‘ => YII2_PATH . ‘/web/NotFoundHttpException.php‘,
  ‘yii\web\Request‘ => YII2_PATH . ‘/web/Request.php‘,
  ‘yii\web\RequestParserInterface‘ => YII2_PATH . ‘/web/RequestParserInterface.php‘,
  ‘yii\web\Response‘ => YII2_PATH . ‘/web/Response.php‘,
  ‘yii\web\ResponseFormatterInterface‘ => YII2_PATH . ‘/web/ResponseFormatterInterface.php‘,
  ‘yii\web\ServerErrorHttpException‘ => YII2_PATH . ‘/web/ServerErrorHttpException.php‘,
  ‘yii\web\Session‘ => YII2_PATH . ‘/web/Session.php‘,
  ‘yii\web\SessionIterator‘ => YII2_PATH . ‘/web/SessionIterator.php‘,
  ‘yii\web\TooManyRequestsHttpException‘ => YII2_PATH . ‘/web/TooManyRequestsHttpException.php‘,
  ‘yii\web\UnauthorizedHttpException‘ => YII2_PATH . ‘/web/UnauthorizedHttpException.php‘,
  ‘yii\web\UnsupportedMediaTypeHttpException‘ => YII2_PATH . ‘/web/UnsupportedMediaTypeHttpException.php‘,
  ‘yii\web\UploadedFile‘ => YII2_PATH . ‘/web/UploadedFile.php‘,
  ‘yii\web\UrlManager‘ => YII2_PATH . ‘/web/UrlManager.php‘,
  ‘yii\web\UrlRule‘ => YII2_PATH . ‘/web/UrlRule.php‘,
  ‘yii\web\UrlRuleInterface‘ => YII2_PATH . ‘/web/UrlRuleInterface.php‘,
  ‘yii\web\User‘ => YII2_PATH . ‘/web/User.php‘,
  ‘yii\web\UserEvent‘ => YII2_PATH . ‘/web/UserEvent.php‘,
  ‘yii\web\View‘ => YII2_PATH . ‘/web/View.php‘,
  ‘yii\web\ViewAction‘ => YII2_PATH . ‘/web/ViewAction.php‘,
  ‘yii\web\XmlResponseFormatter‘ => YII2_PATH . ‘/web/XmlResponseFormatter.php‘,
  ‘yii\web\YiiAsset‘ => YII2_PATH . ‘/web/YiiAsset.php‘,
  ‘yii\widgets\ActiveField‘ => YII2_PATH . ‘/widgets/ActiveField.php‘,
  ‘yii\widgets\ActiveForm‘ => YII2_PATH . ‘/widgets/ActiveForm.php‘,
  ‘yii\widgets\ActiveFormAsset‘ => YII2_PATH . ‘/widgets/ActiveFormAsset.php‘,
  ‘yii\widgets\BaseListView‘ => YII2_PATH . ‘/widgets/BaseListView.php‘,
  ‘yii\widgets\Block‘ => YII2_PATH . ‘/widgets/Block.php‘,
  ‘yii\widgets\Breadcrumbs‘ => YII2_PATH . ‘/widgets/Breadcrumbs.php‘,
  ‘yii\widgets\ContentDecorator‘ => YII2_PATH . ‘/widgets/ContentDecorator.php‘,
  ‘yii\widgets\DetailView‘ => YII2_PATH . ‘/widgets/DetailView.php‘,
  ‘yii\widgets\FragmentCache‘ => YII2_PATH . ‘/widgets/FragmentCache.php‘,
  ‘yii\widgets\InputWidget‘ => YII2_PATH . ‘/widgets/InputWidget.php‘,
  ‘yii\widgets\LinkPager‘ => YII2_PATH . ‘/widgets/LinkPager.php‘,
  ‘yii\widgets\LinkSorter‘ => YII2_PATH . ‘/widgets/LinkSorter.php‘,
  ‘yii\widgets\ListView‘ => YII2_PATH . ‘/widgets/ListView.php‘,
  ‘yii\widgets\MaskedInput‘ => YII2_PATH . ‘/widgets/MaskedInput.php‘,
  ‘yii\widgets\MaskedInputAsset‘ => YII2_PATH . ‘/widgets/MaskedInputAsset.php‘,
  ‘yii\widgets\Menu‘ => YII2_PATH . ‘/widgets/Menu.php‘,
  ‘yii\widgets\Pjax‘ => YII2_PATH . ‘/widgets/Pjax.php‘,
  ‘yii\widgets\PjaxAsset‘ => YII2_PATH . ‘/widgets/PjaxAsset.php‘,
  ‘yii\widgets\Spaceless‘ => YII2_PATH . ‘/widgets/Spaceless.php‘,
];

  

yii 核心类classes.php详解(持续更新中...)