mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-20 03:11:26 +01:00
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?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
|
|
*/
|
|
abstract class BaseApplication extends yii\base\Application
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Class WebApplication
|
|
* Include only Web application related components here
|
|
*
|
|
* @property User $user
|
|
*/
|
|
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 \app\models\User $identity User model.
|
|
*/
|
|
class User extends \yii\web\User
|
|
{
|
|
}
|