From d46b9c327aa91013e16cf5c8ecab7717296dcb7d Mon Sep 17 00:00:00 2001 From: semenov Date: Fri, 19 Jul 2019 10:15:47 +0300 Subject: [PATCH] dev --- _ide/YiiApplication.php | 13 ++++--------- src/config/web.php | 4 ++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/_ide/YiiApplication.php b/_ide/YiiApplication.php index fcbc4b7..b1e32e2 100644 --- a/_ide/YiiApplication.php +++ b/_ide/YiiApplication.php @@ -8,22 +8,17 @@ namespace yii\web; -use common\components\ProjectComponent; -use common\components\TelegramComponent; use common\components\unify\TemplateUnify; -use common\themes\unify\SkeeksUnifyTheme; -use kartik\mpdf\Pdf; use skeeks\cms\themes\unify\components\UnifyThemeSettings; use skeeks\cms\themes\unify\UnifyTheme; -use skeeks\cms\themes\unifyshop\UnifyShopTheme; -use skeeks\crm\components\TinkoffIntegrationApi; -use v3project\themes\mega\ThemeMega; +use skeeks\yii2\mobiledetect\MobileDetect; use yii\base\Theme; /** - * @property View|PView $view - * @property UnifyThemeSettings $unifyThemeSettings + * @property View|PView $view + * @property UnifyThemeSettings $unifyThemeSettings + * @property MobileDetect $mobileDetect * * Class Application * @package yii\web diff --git a/src/config/web.php b/src/config/web.php index c482420..6d7409b 100644 --- a/src/config/web.php +++ b/src/config/web.php @@ -10,5 +10,9 @@ 'unifyThemeSettings' => [ 'class' => \skeeks\cms\themes\unify\components\UnifyThemeSettings::class, ], + + 'mobileDetect' => [ + 'class' => '\skeeks\yii2\mobiledetect\MobileDetect' + ] ], ]; \ No newline at end of file