-
Notifications
You must be signed in to change notification settings - Fork 3
/
autocompletion.php
59 lines (55 loc) · 1.61 KB
/
autocompletion.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 enhanced IDE code autocompletion.
* Note: To avoid "Multiple Implementations" PHPStorm warning and make autocomplete faster
* exclude or "Mark as Plain Text" vendor/yiisoft/yii2/Yii.php file
*/
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
*
* @property trntv\filekit\Storage $fileStorage
* @property common\components\keyStorage\KeyStorage $keyStorage
* @property yii\web\UrlManager $urlManagerFrontend UrlManager for frontend application.
* @property yii\web\UrlManager $urlManagerBackend UrlManager for backend application.
* @property yii\web\UrlManager $urlManagerStorage UrlManager for storage application.
* @property trntv\glide\components\Glide $glide
* @property trntv\bus\CommandBus $commandBus
*/
abstract class BaseApplication extends yii\base\Application
{
}
/**
* Class WebApplication
* Include only Web application related components here
*
* @property User $user User component.
*/
class WebApplication extends yii\web\Application
{
}
/**
* Class ConsoleApplication
* Include only Console application related components here
*/
class ConsoleApplication extends yii\console\Application
{
}
/**
* User component
* Include only Web application related components here
*
* @property \common\models\User $identity User model.
* @method \common\models\User getIdentity() returns User model.
*/
class User extends \yii\web\User
{
}