public function getComponent($name)
    {
        $configurationName = $name . 'Component';
        if (is_string($this->module->$configurationName)) {
            return Yii::$app->get($this->module->$configurationName);
        }
        return $this->module->get('podium_' . $name);
    }
public function getComponent($name)
    {
        $configurationName = $name . 'Component';
        if (is_string($this->module->$configurationName)) {
            return Yii::$app->get($this->module->$configurationName);
        }
        return $this->module->get('podium_' . $name);
    }
public function getComponent ( $ name ) { $ configurationName = $ name . 'Component' ; if ( is_string ( $ this -> module -> $ configurationName ) ) { return Yii :: $ app -> get ( $ this -> module -> $ configurationName ) ; } return $ this -> module -> get ( 'podium_' . $ name ) ; }
Returns instance of component of given name.
@param string $name
@return object component of the specified ID
@throws InvalidConfigException
Returns instance of component of given name .