src/widgets/SocialShare.php
private function createDriver($config)
    {
        $fullConfig = ArrayHelper::merge(
            [
                'class' => $config['class'],
                'url' => $this->url,
                'title' => $this->title,
                'description' => $this->description,
                'imageUrl' => $this->imageUrl,
                'registerMetaTags' => $this->registerMetaTags(),
            ],
            isset($config['config']) ? $config['config'] : [],
            isset($this->driverProperties[$config['class']]) ? $this->driverProperties[$config['class']] : []
        );

        return Yii::createObject($fullConfig);
    }
private function createDriver($config)
    {
        $fullConfig = ArrayHelper::merge(
            [
                'class' => $config['class'],
                'url' => $this->url,
                'title' => $this->title,
                'description' => $this->description,
                'imageUrl' => $this->imageUrl,
                'registerMetaTags' => $this->registerMetaTags(),
            ],
            isset($config['config']) ? $config['config'] : [],
            isset($this->driverProperties[$config['class']]) ? $this->driverProperties[$config['class']] : []
        );

        return Yii::createObject($fullConfig);
    }
private function createDriver ( $ config ) { $ fullConfig = ArrayHelper :: merge ( [ 'class' => $ config [ 'class' ] , 'url' => $ this -> url , 'title' => $ this -> title , 'description' => $ this -> description , 'imageUrl' => $ this -> imageUrl , 'registerMetaTags' => $ this -> registerMetaTags ( ) , ] , isset ( $ config [ 'config' ] ) ? $ config [ 'config' ] : [ ] , isset ( $ this -> driverProperties [ $ config [ 'class' ] ] ) ? $ this -> driverProperties [ $ config [ 'class' ] ] : [ ] ) ; return Yii :: createObject ( $ fullConfig ) ; }
Creates driver instance.

@param array $config Configuration for driver.

@return \ymaker\social\share\base\AbstractDriver

@throws \yii\base\InvalidConfigException
Creates driver instance .