forked from lav45/yii2-translated-behavior-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Yii.php
59 lines (54 loc) · 1.63 KB
/
Yii.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Yii bootstrap file.
* Used for IDE code autocompletion for our extended from Yii core components and classes.
*
* This file is copy and does the same as './vendor/yiisoft/yii2/Yii.php'.
* Note! To avoid 'Multiple Implementations' PHPStorm waring and make autocomplete faster
* - exclude or 'Mark as Plain Text' file './vendor/yiisoft/yii2/Yii.php'.
*
*
* Yii is a helper class serving common framework functionalities.
*
* It extends from [[\yii\BaseYii]] which provides the actual implementation.
* By writing your own Yii class, you can customize some functionalities of [[\yii\BaseYii]].
*
* @author Qiang Xue <[email protected]>
* @since 2.0
*/
class Yii extends \yii\BaseYii
{
/**
* @var BaseApplication|WebApplication|ConsoleApplication the application instance
*/
public static $app;
}
/**
* Class BaseApplication
* Used for properties that are identical for both WebApplication and ConsoleApplication
*/
abstract class BaseApplication extends yii\base\Application
{
}
/**
* Class WebApplication
* Include only Web application related components here
*
* @property User $user The user component. This property is read-only. Extended component.
*/
class WebApplication extends yii\web\Application
{
}
/**
* Class ConsoleApplication
* Include only Console application related components here
*/
class ConsoleApplication extends yii\console\Application
{
}
/**
* @property \common\models\User|\yii\web\IdentityInterface|null $identity The identity object associated with the currently logged-in user. null is returned if the user is not logged in (not authenticated).
*/
class User extends \yii\web\User
{
}