public static function fromFile($file, $params, $theme) { $instance = new self(); $instance->initializeFromFile($file, $params, $theme); return $instance; }