Additionally/Accessibility/Console commands/Custom command names

Custom Command Names

In addition to generating console command names from the class name and command folder, there is a direct assignment of a name and also the addition of a short name.

To specify a command name, use one of the following constants in the command class. These constants must have public visibility (public).

All console command names in the project, including short ones, must be unique.


#TASK_NAME Constant

The feature of the class TASK_NAME constant is replacing the automatically determined command name with the one specified in the constant.


#TASK_SHORT_NAME Constant

The class TASK_SHORT_NAME constant allows you to add a short additional name to the automatically generated command name or to the one directly set in TASK_NAME.

Page translated: chatgpt 4-o
Back to top