Skip to content

Commit

Permalink
Add Bootstrap class
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Mar 30, 2016
1 parent 5c9846e commit adad572
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace hipanel\modules\domainchecker;

use yii\base\BootstrapInterface;

class Bootstrap implements BootstrapInterface
{
public function bootstrap($application)
{
$application->getI18n()->translations['hipanel/domainchecker'] = [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@hipanel/modules/domainchecker/messages',
'fileMap' => [
'hipanel/domainchecker' => 'domainchecker.php',
],
];
}
}
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@
"psr-4": {
"hipanel\\modules\\domainchecker\\": "src"
}
},
"extra": {
"bootstrap": "hipanel\\modules\\domainchecker\\Bootstrap"
}
}

0 comments on commit adad572

Please sign in to comment.