Back to ConsoleApplication class

Method getDefaultCommands

protected \Joomla\Console\Command\AbstractCommand[]
getDefaultCommands
()
Get the commands which should be registered by default to the application.
Returns
  • \Joomla\Console\Command\AbstractCommand[]
Since
  • 4.0.0

Method getDefaultCommands - Source code

/**
 * Get the commands which should be registered by default to the application.
 *
 * @return  \Joomla\Console\Command\AbstractCommand[]
 *
 * @since   4.0.0
 */
protected function getDefaultCommands() : array
{
    return array_merge(parent::getDefaultCommands(), [new Console\CleanCacheCommand(), new Console\CheckUpdatesCommand(), new Console\RemoveOldFilesCommand(), new Console\AddUserCommand(), new Console\AddUserToGroupCommand(), new Console\RemoveUserFromGroupCommand(), new Console\DeleteUserCommand(), new Console\ChangeUserPasswordCommand(), new Console\ListUserCommand()]);
}