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
Several core extensions are relying on current Application to be able to handle system messages using the
enqueueMessage
andgetMessageQueue
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
orCliApplication
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