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
|
|
|
|
*
|
2018-07-08 20:50:19 +05:30
|
|
|
* @property \yii\db\Connection $unbufferedDb
|
2024-12-02 15:40:55 +05:30
|
|
|
* @property \yii\symfonymailer\Mailer $mailer
|
2018-07-08 20:50:19 +05:30
|
|
|
* @property \yii\redis\Connection $redis
|
|
|
|
* @property \GuzzleHttp\Client $guzzle
|
2019-06-07 04:46:13 +05:30
|
|
|
* @property \common\components\EmailsRenderer\Component $emailsRenderer
|
2024-12-02 15:40:55 +05:30
|
|
|
* @property \nohnaimer\sentry\Component $sentry
|
2018-07-08 20:50:19 +05:30
|
|
|
* @property \common\components\StatsD $statsd
|
|
|
|
* @property \yii\queue\Queue $queue
|
2016-07-17 21:43:40 +05:30
|
|
|
*/
|
|
|
|
abstract class BaseApplication extends yii\base\Application {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class WebApplication
|
|
|
|
* Include only Web application related components here
|
|
|
|
*
|
2019-12-04 23:40:15 +05:30
|
|
|
* @property \api\components\User\Component $user
|
|
|
|
* @property \api\components\ReCaptcha\Component $reCaptcha
|
|
|
|
* @property \api\components\OAuth2\Component $oauth
|
|
|
|
* @property \api\components\Tokens\Component $tokens
|
|
|
|
* @property \api\components\Tokens\TokensFactory $tokensFactory
|
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 {
|
|
|
|
}
|