src/base/File.php
public static function create($path)
    {
        $config = is_array($path) ? $path : compact('path');
        $config['class'] = get_called_class();

        return Yii::createObject($config);
    }
public static function create($path)
    {
        $config = is_array($path) ? $path : compact('path');
        $config['class'] = get_called_class();

        return Yii::createObject($config);
    }
public static function create ( $ path ) { $ config = is_array ( $ path ) ? $ path : compact ( 'path' ) ; $ config [ 'class' ] = get_called_class ( ) ; return Yii :: createObject ( $ config ) ; }
Create file object.
@param string|array $path or config
@return File
Create file object .