2016-07-17 21:43:40 +05:30
|
|
|
<?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 \yii\swiftmailer\Mailer $mailer
|
|
|
|
* @property \yii\redis\Connection $redis
|
|
|
|
* @property \common\components\RabbitMQ\Component $amqp
|
2016-09-06 15:26:39 +05:30
|
|
|
* @property \GuzzleHttp\Client $guzzle
|
2016-10-02 15:22:17 +05:30
|
|
|
* @property \common\components\EmailRenderer $emailRenderer
|
2016-07-17 21:43:40 +05:30
|
|
|
*/
|
|
|
|
abstract class BaseApplication extends yii\base\Application {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class WebApplication
|
|
|
|
* Include only Web application related components here
|
|
|
|
*
|
2016-11-27 03:13:42 +05:30
|
|
|
* @property \api\components\User\Component $user User component.
|
|
|
|
* @property \api\components\ApiUser\Component $apiUser Api User component.
|
2016-07-17 21:43:40 +05:30
|
|
|
* @property \api\components\ReCaptcha\Component $reCaptcha
|
2016-11-27 03:13:42 +05:30
|
|
|
* @property \api\components\OAuth2\Component $oauth
|
2016-07-17 23:16:04 +05:30
|
|
|
*
|
|
|
|
* @method \api\components\User\Component getUser()
|
2016-07-17 21:43:40 +05:30
|
|
|
*/
|
|
|
|
class WebApplication extends yii\web\Application {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class ConsoleApplication
|
|
|
|
* Include only Console application related components here
|
|
|
|
*/
|
|
|
|
class ConsoleApplication extends yii\console\Application {
|
|
|
|
}
|