Task/File/FileFetchTask.php
public function initialize(ProcessState $state)
    {
        if (!$this->mountManager) {
            throw new ServiceNotFoundException('MountManager service not found, you need to install FlySystemBundle');
        }
        // Configure options
        parent::initialize($state);

        $this->sourceFS = $this->mountManager->getFilesystem($this->getOption($state, 'source_filesystem'));
        $this->destinationFS = $this->mountManager->getFilesystem($this->getOption($state, 'destination_filesystem'));
    }
public function initialize(ProcessState $state)
    {
        if (!$this->mountManager) {
            throw new ServiceNotFoundException('MountManager service not found, you need to install FlySystemBundle');
        }
        // Configure options
        parent::initialize($state);

        $this->sourceFS = $this->mountManager->getFilesystem($this->getOption($state, 'source_filesystem'));
        $this->destinationFS = $this->mountManager->getFilesystem($this->getOption($state, 'destination_filesystem'));
    }
@param ProcessState $state

@throws \InvalidArgumentException
@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface
@throws \League\Flysystem\FilesystemNotFoundException