Oh, if your types classes aren’t intended to be injectable registrations, you also probably also want to ensure they don’t get auto-registered in the container. I suspect that if you ran MyContainer.keys
, you’d see they’re all there. One way to do this is to put the # auto_register: false
magic comment at the top of the file.
2 Likes