I read through the documentation and I am a little bit confused about Components. It seems like they define injectable resources inside the application and provide a separation of concerns mechanism for complex applications.
It feels like the database should be a component inside this framework. But I am not entirely sure how I can retrieve the component after I added it to the application. Say I have 2/5 commands that need access to the database. How would I provide them the component?
APP doesn't expose components, which was contrary to my expectation.
I read through the documentation and I am a little bit confused about
Component
s. It seems like they define injectable resources inside the application and provide a separation of concerns mechanism for complex applications.It feels like the database should be a component inside this framework. But I am not entirely sure how I can retrieve the component after I added it to the application. Say I have 2/5 commands that need access to the database. How would I provide them the component?
APP
doesn't expose components, which was contrary to my expectation.