Requirements:
Implementing Atomicity property to the route command so that if any of the subprocesses fail, the whole operation fails and any completed process is reverted.
Specifications:
- A way to keep track of completed process to be able to revert them.
- Either by creating a temporary log file that is automatically deleted after the process is completed or by storing the data in variables.
- A function that deletes any files and directories created or reverts any modifications made to files by any of the subprocesses to the following paths:
- src/Router/routes.php
- src/Controllers/[route-name]Controller.php
- src/Views/[route-name].php
- src/Views/layouts/main.php
Requirements:
Implementing Atomicity property to the route command so that if any of the subprocesses fail, the whole operation fails and any completed process is reverted.
Specifications: