public function registerDependencies()
    {
        if(empty($this->languageProvider)) {
            throw new InvalidConfigException("Invalid configuration of '$this->id' module");
        }

        Yii::$container->set('bl\emailTemplates\providers\LanguageProviderInterface', $this->languageProvider);
    }
public function registerDependencies()
    {
        if(empty($this->languageProvider)) {
            throw new InvalidConfigException("Invalid configuration of '$this->id' module");
        }

        Yii::$container->set('bl\emailTemplates\providers\LanguageProviderInterface', $this->languageProvider);
    }
public function registerDependencies ( ) { if ( empty ( $ this -> languageProvider ) ) { throw new InvalidConfigException ( "Invalid configuration of '$this->id' module" ) ; } Yii :: $ container -> set ( 'bl\emailTemplates\providers\LanguageProviderInterface' , $ this -> languageProvider ) ; }
Add language provider to DI container
Add language provider to DI container