-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
-
83618-namespace-refactor
-
-
In component.json, the entry for backup is mapped to backup/util/ui. This requires all autoloaded classes inside core_backup to be inside the backup/util/ui directory.
The classes there currently are all part of util/ui. However any classes that would relate to other parts of the backup would need to be placed inside this directory as well. This does not make sense.
Fore example, if I wish to create a hook for use with helper/copy_helper.php code, it would need to be placed inside backup/util/ui/classes/hook.
Proposed solution:
- Remap the core_backup namespace to backup instead of backup/util/ui.
- Move the classes directory from backup/util/ui to backup.
- Move renderer.php to backup.