Ability to use Container outside of request handling #243
-
Hey there, I'm thinkering around with Framework X, and still like many of the details. For my test project, I'm also in need of a 'command'. I.e. a task that is ran every once in a while. I know there are plans to support commands as part of the framework, but to get ahead of that, I thought to re-use some of the services I defined in the However, I am unable to use the container outside of a request handling perspective. It looks to me that the container is only to be used as a middleware (the Is there any way to retrieve services from the container outside of request handling perspective? Besides this question, what about the idea to let the container itself also implement PSR-11? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @hvt, thanks for bringing this up, glad you like Framework X 👍️
Definitely a great feature request, sounds like you want to use something like CRON which is one of the features we also talked about while working on the recently released
The Hope this helps and gives you some insights into our plans for Framework X 👍 |
Beta Was this translation helpful? Give feedback.
Hey @hvt, thanks for bringing this up, glad you like Framework X 👍️
Definitely a great feature request, sounds like you want to use something like CRON which is one of the features we also talked about while working on the recently released
v0.16.0
. I know that @clue has a prototype for this on his laptop and we also see this as a great feature addition that we want to introduce not too far in the future. We're currently heading towards av0.17.0
which will improve/rework some of the handler structure, so we can then go ahead and add a few new handlers too Framework X (won't spoil too muc…