public static function getImageComponent()
    {
        // Get image component
        if (is_object(static::$_imageComponent)) {
            $imageComponent = static::$_imageComponent;
        } else {
            $imageComponent = Yii::createObject([
                'class' => 'yii\image\ImageDriver',
            ]);
            // Store component for future using
            static::$_imageComponent = $imageComponent;
        }

        return $imageComponent;
    }
public static function getImageComponent()
    {
        // Get image component
        if (is_object(static::$_imageComponent)) {
            $imageComponent = static::$_imageComponent;
        } else {
            $imageComponent = Yii::createObject([
                'class' => 'yii\image\ImageDriver',
            ]);
            // Store component for future using
            static::$_imageComponent = $imageComponent;
        }

        return $imageComponent;
    }
public static function getImageComponent ( ) { // Get image component if ( is_object ( static :: $ _imageComponent ) ) { $ imageComponent = static :: $ _imageComponent ; } else { $ imageComponent = Yii :: createObject ( [ 'class' => 'yii\image\ImageDriver' , ] ) ; // Store component for future using static :: $ _imageComponent = $ imageComponent ; } return $ imageComponent ; }
Get image component

@return \yii\image\ImageDriver
Get image component