mirror of
https://github.com/elyby/accounts.git
synced 2024-12-29 00:20:22 +05:30
c0aa78d156
Completely removed usage of the RabbitMQ. Queue now based on Redis channels. Worker process now extracted as separate docker container. Base image upgraded to the 1.8.0 version (PHP 7.2.7 and pcntl extension).
50 lines
1.5 KiB
PHP
50 lines
1.5 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
|
|
*
|
|
* @property \yii\db\Connection $unbufferedDb
|
|
* @property \yii\swiftmailer\Mailer $mailer
|
|
* @property \yii\redis\Connection $redis
|
|
* @property \GuzzleHttp\Client $guzzle
|
|
* @property \common\components\EmailRenderer $emailRenderer
|
|
* @property \mito\sentry\Component $sentry
|
|
* @property \api\components\OAuth2\Component $oauth
|
|
* @property \common\components\StatsD $statsd
|
|
* @property \yii\queue\Queue $queue
|
|
*/
|
|
abstract class BaseApplication extends yii\base\Application {
|
|
}
|
|
|
|
/**
|
|
* Class WebApplication
|
|
* Include only Web application related components here
|
|
*
|
|
* @property \api\components\User\Component $user User component.
|
|
* @property \api\components\ReCaptcha\Component $reCaptcha
|
|
*
|
|
* @method \api\components\User\Component getUser()
|
|
*/
|
|
class WebApplication extends yii\web\Application {
|
|
}
|
|
|
|
/**
|
|
* Class ConsoleApplication
|
|
* Include only Console application related components here
|
|
*/
|
|
class ConsoleApplication extends yii\console\Application {
|
|
}
|