-
Notifications
You must be signed in to change notification settings - Fork 61
/
Module.php
39 lines (34 loc) · 1.03 KB
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2022
* @version 3.0.5
*/
namespace kartik\base;
use ReflectionException;
use yii\base\InvalidConfigException;
use yii\base\Module as YiiModule;
/**
* This is the base module class for all modules implemented in Krajee extensions. It includes specific
* enhancements for configuring translations for the Krajee modules. It also allows initializing Bootstrap library
* specific parameters based on the Bootstrap library version (3.x, 4.x, or 5.x) used by your application.
*
* @author Kartik Visweswaran <kartikv2@gmail.com>
*/
class Module extends YiiModule implements BootstrapInterface
{
use TranslationTrait;
use BootstrapTrait;
/**
* @inheritdoc
* @throws InvalidConfigException
* @throws ReflectionException
*/
public function init()
{
$this->initBsVersion();
parent::init();
$this->initI18N();
}
}