I'm trying to create a custom module that would connect to an external FTP and grab an XML file (provided by third party). This file can't be accessed through http.
In Drupal 8, there is the
Drupal\Core\FileTransfer\FTP class, but I'm not sure as of how I could use it inside my custom module. I don't see any service I could use.
Do I use that class directly, or is there a service I need to use?