akeeba / fof

Rapid Application Development framework for Joomla!™ 3 and 4
0 stars 0 forks source link

CLI application will handle app messages, too #690

Closed tampe125 closed 4 years ago

tampe125 commented 4 years ago

Several core extensions are relying on current Application to be able to handle system messages using the enqueueMessage and getMessageQueue methods.
Sadly those methods are a de facto requirement, but they are not declared in low level classes, so any other class extending the core ones BaseApplication or CliApplication will crash into a fatal error.

This PR creates a new trait to make your CLI application aware of system messages; code is loosely based on Joomla one.
This PR is fully B/C