protected function convertUploadedFiles( array $files )
	{
		return array_map( function ( $file )
		{
			if ( is_null( $file ) || ( is_array( $file ) && empty( array_filter( $file ) ) ) )
				return $file;

			return is_array( $file ) ? $this->convertUploadedFiles( $file ) : UploadedFile::createFromBase( $file );
		}, $files );
	}
protected function convertUploadedFiles( array $files )
	{
		return array_map( function ( $file )
		{
			if ( is_null( $file ) || ( is_array( $file ) && empty( array_filter( $file ) ) ) )
				return $file;

			return is_array( $file ) ? $this->convertUploadedFiles( $file ) : UploadedFile::createFromBase( $file );
		}, $files );
	}
protected function convertUploadedFiles ( array $ files ) { return array_map ( function ( $ file ) { if ( is_null ( $ file ) || ( is_array ( $ file ) && empty ( array_filter ( $ file ) ) ) ) return $ file ; return is_array ( $ file ) ? $ this -> convertUploadedFiles ( $ file ) : UploadedFile :: createFromBase ( $ file ) ; } , $ files ) ; }
Convert the given array of Symfony UploadedFiles to custom Framework UploadedFiles.

@param  array $files
@return array
Convert the given array of Symfony UploadedFiles to custom Framework UploadedFiles .