Completed
Pull Request — master (#15)
by
unknown
02:55
created

Bootstrap::bootstrap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * @link https://github.com/yiiviet/yii2-payment
4
 * @copyright Copyright (c) 2017 Yii Viet
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
9
namespace nhuluc\payment;
10
11
use yii\base\BootstrapInterface;
12
use yii\validators\Validator;
13
14
/**
15
 * Lớp Bootstrap hổ trợ cấu hình bank validator
16
 *
17
 * @author Nhu Luc <[email protected]>
18
 * @since 1.0.3
19
 */
20
class Bootstrap implements BootstrapInterface
21
{
22
    /**
23
     * @inheritdoc
24
     */
25 64
    public function bootstrap($app)
26
    {
27 64
        Validator::$builtInValidators = array_merge(Validator::$builtInValidators, [
28 64
            'bankvn' => BankValidator::class
29
        ]);
30 64
    }
31
}
32