Hi there.
I was working through Alex Garrett-Smith older Codecourse course on building a simple container and autowiring.
https://codecourse.com/courses/learn-how-autowiring-works
Unfortunately, mention in the lecture is made about an available repo, but this was not available.
This is such a great course.
The course leverages up skills and Alex explains the container and autowiring process very well, in my opinion.
I know I will need to go through it a number of times to pin down and more fully understand the process Alex explains.
I went through the course in detail and here is the final code for my own use, and also yours, if interested.
Note: All commented sections were mentioned in the lecture as he moved through and discarded each.
Note: I also built my own exception handler to catch exceptions as a template view in the templates folder.
Note: I use the classic composer dump to add classes to the vendor/composer/autoload_classmap.php
I also use composer start to run the code.
I.e. both of these are set up in composer.json scripts.
Note: I left the vendor folder and .idea in the folder and did not gitignore them as I will be downloading and using the folder as is when I revisit this course again soon.
Enjoy.