[Tools] Fusiondirectory-plugin-manager - a yaml verification should happens before any further process
A verification of the overall structure of the yaml and passed arguments should be verified before any process.
In case of error (typo in the yaml E.g) - it should be mentioned before any further processing.
Example of typo but code is executed properly anyway :
root@fce0d042bb7d:/home# fusiondirectory-plugins-manager --remove-plugin aida-freediving
aida-freediving plugin has been successfully unregistered.
PHP Notice: Undefined index: fileList in /usr/share/php/FusionDirectory/FusionDirectory/Tools/PluginsManager.php on line 415
PHP Warning: Invalid argument supplied for foreach() in /usr/share/php/FusionDirectory/FusionDirectory/Tools/PluginsManager.php on line 415
unlink: /etc/fusiondirectory/yaml/aida-freediving/description.yaml