joomla-x/joomla-pythagoras

Front Controller: Command Detection

Opened this issue · 6 comments

nibra commented

All CRUD operations are (will be) covered by the core system. If a component provides business logic, this should go into (business) Models. We need a way to identify or declare the public methods (and their parameters) to wrap them into Commands.

Ported from the service project https://github.com/chrisdavenport/service.

nibra commented

It#s only partially done, since some issues with the detection of Command(Handler)s are not solved yet.

What issues have you come across?

nibra commented

I'm looking for a convenient way to autodetect commands (and their required parameters) from controllers/models, if their public methods are treated as command handlers. Haven't spent much time on this yet.

But then I would open a new issue which addresses exactly that problem. Having a generic issue which addresses all Command Bus problems is confusing and difficult to trace.

nibra commented

That's one of the next steps.