Multiple filesystems was still not working : all filesystems except the last one was ignored.
This is because we were doing a setFilesystem on every filesystems. So the last one was overriding all others.
Instead we can consider 2 approach :
1 - Using multiple GaufretteClient (one per filesystem), and add them all to the ClientManager as $children.
2 - Using 1 GaufretteClient to handle all the filesystems, and keep just one GaufretteClient attached to the ClientManager
I think the second option is better. What do you think ?
This PR implement the second option.
This is related to this previous PR : https://github.com/dizda/CloudBackupBundle/pull/72 I did a mistake.
Multiple filesystems was still not working : all filesystems except the last one was ignored.
This is because we were doing a
setFilesystem
on every filesystems. So the last one was overriding all others.Instead we can consider 2 approach : 1 - Using multiple
GaufretteClient
(one per filesystem), and add them all to theClientManager
as$children
. 2 - Using 1GaufretteClient
to handle all the filesystems, and keep just oneGaufretteClient
attached to theClientManager
I think the second option is better. What do you think ? This PR implement the second option.
Also, not sure if pluralize the property
$filesystem
of the classGaufretteClient
is a best practice ? https://github.com/FrancoisMartin/CloudBackupBundle/blob/master/Client/GaufretteClient.php#l15