dmitry-kulikov/yii2-braintree

View on GitHub
src/ActiveForm.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * @author Anton Tuyakhov <atuyakhov@gmail.com>
 */

namespace tuyakhov\braintree;

class ActiveForm extends \yii\bootstrap\ActiveForm
{
    /**
     * {@inheritdoc}
     */
    public function init()
    {
        parent::init();

        BraintreeAsset::register($this->getView());
        $this->fieldClass = ActiveField::class;
    }
}