Deprecation: #79591 - Extbase command controllers admin role methods

See forge#79591


The methods CommandController->ensureAdminRoleIfRequested() and CommandController->restoreUserRole() have been marked as deprecated.

All CLI scripts are now executed with administrator access rights, so this functionality is obsolete.


Calling any of the methods above will trigger a deprecation log warning.

Affected Installations

Any installation with custom CLI Extbase Command Controllers using the methods above.


Remove the affected lines where the methods are called, as they are not necessary anymore.