You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
I thought of adding the ZF2 ServiceManager to handle the commands. I think it would make it much easier to create factories to create command instances. Or we could even add all objects to the ServiceManager, especially the Application instance. That would make it much easier to inject the Application instance to the HelpCommand as well. We could even refactor the Application class and pull out the standard commands to external classes (like the HelpCommand). An extra interface could standardize the __invoke() methods for all commands.
Would the effort be worth it or would it introduce an unwanted complexity or overhead?
The text was updated successfully, but these errors were encountered:
I thought of adding the ZF2
ServiceManager
to handle the commands. I think it would make it much easier to create factories to create command instances. Or we could even add all objects to theServiceManager
, especially theApplication
instance. That would make it much easier to inject theApplication
instance to theHelpCommand
as well. We could even refactor theApplication
class and pull out the standard commands to external classes (like theHelpCommand
). An extra interface could standardize the__invoke()
methods for all commands.Would the effort be worth it or would it introduce an unwanted complexity or overhead?
The text was updated successfully, but these errors were encountered: