Implement the ability to edit objects
The update operation, or the letter U from the abbreviation CRUD, is, on the one hand, the most difficult operation to implement. On the other hand, once we have already implemented the add and delete operations, it will not be difficult to implement it.
I will not show in detail how to do the update here, but will just sketch out how it can be implemented.
The controller can be based on the Create controller, as the part responsible for processing the post request will remain almost unchanged.
In get, you just need to pull out the object by id.

In the router, add a route for editing by identifier.
$router->add("/space-object/(?P<id>\d+)/edit", SpaceObjectUpdateController::class);
You can create a new template or modify the old one. The main thing you need to do is make sure that all the fields in all inputs are filled in, i.e., specify the value attribute:

And add a button somewhere that will simply link to the edit page.