Skip to content

Commit

Permalink
used composer-config-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 18, 2016
1 parent 5ef0551 commit 08974e1
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 41 deletions.
19 changes: 17 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
39 changes: 0 additions & 39 deletions src/Plugin.php

This file was deleted.

3 changes: 3 additions & 0 deletions src/config/hidev.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

return [];
34 changes: 34 additions & 0 deletions src/config/hisite.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

/*
* Domain checker plugin for HiPanel
*
* @link https://github.com/hiqdev/hipanel-domain-checker
* @package hipanel-domain-checker
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/

return [
'aliases' => [
'@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',
],
],
],
],
],
];

0 comments on commit 08974e1

Please sign in to comment.