execut /
yii2-actions
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | */ |
||
| 4 | |||
| 5 | namespace execut\actions; |
||
| 6 | |||
| 7 | class Bootstrap extends \execut\yii\Bootstrap |
||
| 8 | { |
||
| 9 | public function getDefaultDepends() |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'modules' => [ |
||
| 13 | 'dynagrid' => [ |
||
| 14 | 'class' => '\kartik\dynagrid\Module', |
||
| 15 | 'defaultPageSize' => 100, |
||
| 16 | 'maxPageSize' => 500, |
||
| 17 | 'dbSettings' => [ |
||
| 18 | 'tableName' => 'dynagrid', |
||
| 19 | ], |
||
| 20 | 'dbSettingsDtl' => [ |
||
| 21 | 'tableName' => 'dynagrid_dtl', |
||
| 22 | ], |
||
| 23 | |||
| 24 | ], |
||
| 25 | 'gridview' => [ |
||
| 26 | 'class' => '\kartik\grid\Module', |
||
| 27 | ], |
||
| 28 | 'actions' => [ |
||
| 29 | 'class' => Module::class, |
||
| 30 | ], |
||
| 31 | ], |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function bootstrap($app) |
||
|
0 ignored issues
–
show
Coding Style
Best Practice
introduced
by
Loading history...
|
|||
| 36 | { |
||
| 37 | parent::bootstrap($app); |
||
| 38 | |||
| 39 | self::initI18N(); |
||
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | public static function initI18N() { |
||
| 45 | \yii::setAlias('@execut', '@vendor/execut'); |
||
| 46 | if (\Yii::$app->i18n) { |
||
| 47 | \Yii::$app->i18n->translations['execut.actions'] = [ |
||
| 48 | 'class' => 'yii\i18n\PhpMessageSource', |
||
| 49 | 'sourceLanguage' => 'en-US', |
||
| 50 | 'basePath' => '@execut/yii2-actions/messages', |
||
| 51 | 'fileMap' => [ |
||
| 52 | 'execut.actions' => 'actions.php', |
||
| 53 | ], |
||
| 54 | ]; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | } |