FrenzelGmbH/cm-comments

View on GitHub
Module.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace net\frenzel\comment;

/**
 * @author Philipp Frenzel <philipp@frenzel.net> 
 */

class Module extends \yii\base\Module
{
    /**
     * @inheritdoc
     */
    public static $name = 'comments';
    
    /** @var string|null */
    public $userIdentityClass = null;
    
    /**
     * [init description]
     * @return [type] [description]
     */
    public function init()
    {
        parent::init();
        if ($this->userIdentityClass === null) {
            $this->userIdentityClass = \Yii::$app->getUser()->identityClass;
        }
    }
}