This PR removes code to set $application object for privacy plugins because these plugins do not have any code to use application at all. Look like these lines of code come from copy/paste while converting plugins to service provider
Testing Instructions
Use Joomla 5.3 nightly build
Login to administrator area of your site
Access to Users -> Privacy -> Requests, create a new Privacy Information Request
Check the email which you create the request to, there should be link to allow you to confirm the request (honestly, I just guess because I am not familiar with this feature and in my test, I looked at #__privacy_requests table, change status field of the request to 1 manually)
Access to the request again, press Export Data button to perform export
You can also test it by doing code review and confirm that in the following files, there is no $this->getApplication() code called there:
Nope, sorry. It is in use for language loading, and these plugins have a few own lang strings.
joomla-cms/libraries/src/Plugin/CMSPlugin.php
Line 178 in d38a8ff
That is something that we still need to figure out how to improve.