akeeba / fof

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

CLI Dispatcher and master CLI app template #616

Closed nikosdion closed 6 years ago

nikosdion commented 8 years ago

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.

nikosdion commented 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.