From 08974e19aeb387727e6d8db493a248beeeb48026 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Wed, 18 May 2016 14:32:31 +0000 Subject: [PATCH] used composer-config-plugin --- composer.json | 19 +++++++++++++++++-- src/Plugin.php | 39 --------------------------------------- src/config/hidev.php | 3 +++ src/config/hisite.php | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+), 41 deletions(-) delete mode 100644 src/Plugin.php create mode 100644 src/config/hidev.php create mode 100644 src/config/hisite.php diff --git a/composer.json b/composer.json index f166533f..966fcd67 100644 --- a/composer.json +++ b/composer.json @@ -41,12 +41,27 @@ "homepage": "http://hiqdev.com/" } ], + "require-dev": { + "hiqdev/hidev-php": "<2.0", + "hiqdev/hidev-vendor": "<2.0" + }, "autoload": { "psr-4": { "hipanel\\modules\\domainchecker\\": "src" } }, "extra": { - "bootstrap": "hipanel\\modules\\domainchecker\\Bootstrap" - } + "bootstrap": "hipanel\\modules\\domainchecker\\Bootstrap", + "config-plugin": { + "hisite": "src/config/hisite.php", + "hidev": "src/config/hidev.php" + } + }, + "minimum-stability": "dev", + "repositories": [ + { + "type": "composer", + "url": "https://asset-packagist.org" + } + ] } diff --git a/src/Plugin.php b/src/Plugin.php deleted file mode 100644 index 45c87795..00000000 --- a/src/Plugin.php +++ /dev/null @@ -1,39 +0,0 @@ - [ - '@domainchecker' => '/domainchecker/domainchecker', - ], - 'modules' => [ - 'domainchecker' => [ - 'class' => 'hipanel\modules\domainchecker\Module', - ], - ], - 'components' => [ - 'i18n' => [ - 'translations' => [ - 'hipanel/domainchecker' => [ - 'class' => 'yii\i18n\PhpMessageSource', - 'basePath' => '@hipanel/modules/domainchecker/messages', - 'fileMap' => [ - 'hipanel/domainchecker' => 'domainchecker.php', - ], - ], - ], - ], - ], - ]; -} diff --git a/src/config/hidev.php b/src/config/hidev.php new file mode 100644 index 00000000..0b67a5fe --- /dev/null +++ b/src/config/hidev.php @@ -0,0 +1,3 @@ + [ + '@domainchecker' => '/domainchecker/domainchecker', + ], + 'modules' => [ + 'domainchecker' => [ + 'class' => \hipanel\modules\domainchecker\Module::class, + ], + ], + 'components' => [ + 'i18n' => [ + 'translations' => [ + 'hipanel/domainchecker' => [ + 'class' => \yii\i18n\PhpMessageSource::class, + 'basePath' => '@hipanel/modules/domainchecker/messages', + 'fileMap' => [ + 'hipanel/domainchecker' => 'domainchecker.php', + ], + ], + ], + ], + ], +];