Closed nikosdion closed 6 years ago
Since Joomla! 4 is bringing real CLI apps (if I understand correctly, using Symfony's Console) there is no point duplicating this work creating a CLI dispatcher. Instead, it makes perfect sense to import the abstraction we have in other Akeeba software into FOF as a stopgap for components which will be Joomla! 3 and Joomla! 4 compatible for a while.
All Joomla CLI apps have a common setup part. We have already abstracted that in Akeeba Backup and Admin Tools. We should include that code in FOF for other people to use.
Furthermore, the Dispatcher in FOF is designed for use with web applications. In CLI apps it makes no sense. What we need is a Dispatcher that understands command line options and dispatches the application accordingly. So we need to write a new, CLI-only Dispatcher, i.e.
FOF30\Dispatcher\Cli
.