PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
29 Feb 2024

Followup Pull Request for PRs #42702 and #42704 . @Hackwar

Summary of Changes

replace extra app property and replace with injected application due service provider

Testing Instructions

check new options (#42702 and #42704) are still working as expected

Actual result BEFORE applying this Pull Request

app property in plugins are deprecated

if (property_exists($this, 'app')) {
@trigger_error('The application should be injected through setApplication() and requested through getApplication().', E_USER_DEPRECATED);
$reflection = new \ReflectionClass($this);
$appProperty = $reflection->getProperty('app');
if ($appProperty->isPrivate() === false && \is_null($this->app)) {
$this->app = Factory::getApplication();
}
}

Expected result AFTER applying this Pull Request

no deprecated app property is used in sef plugin

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar heelc29 heelc29 - open - 29 Feb 2024
avatar heelc29 heelc29 - change - 29 Feb 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Feb 2024
Category Front End Plugins
avatar Quy
Quy - comment - 1 Mar 2024

#42932 includes these fixes.

avatar heelc29 heelc29 - change - 4 Mar 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-03-04 15:47:26
Closed_By heelc29
Labels Added: PR-5.1-dev
avatar heelc29 heelc29 - close - 4 Mar 2024

Add a Comment

Login with GitHub to post a comment