# The lifecycle of an action
registered method is triggered once the Action has been automatically registered. Thus, this method will run at most once per class.
This method will be called every time a new action object of this class is constructed.
Overridable methods that maps data from various resources into attributes.
Note that objects and jobs do not need such methods since their attributes are manually given when created/dispatched.
Can be used to provide additional logic before going through the authorisation and validation steps.
Similar to the
prepareForValidation method but different methods will be triggered based on how the actions is running as.
Can be used to provide authorisation logic. See the "Authorisation" page.
failedValidation and other validation methods
Can be used to provide validation logic. See the "Validation" page.
The main method that defines the logic of your action to be executed. This is the only required method.
response (controllers only)
Can be used to map the result of the action into a HTTP response. See "Returning HTTP responses".
consoleOutput (commands only)
Can be used to customise what to display to the console after executing the action. See "Console output and exit code".