? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
26 Mar 2022

Summary of Changes

Adds an alias for the old router classes in container. Like that point the code $app::getRouter('Site'); to the same instance as Factory::getContainer()->get('SiteRouter');.

Testing Instructions

Add the following code to the file /plugins/system/schedulerunner/schedulerunner.php at line 110

$appRouter = $this->app::getRouter('Site');
$containerRouter = Factory::getContainer()->get('SiteRouter');
$appRouter->setVar('test', 'joomla');
echo $containerRouter->getVar('test');die;

Actual result BEFORE applying this Pull Request

Joomla is not printed.

Expected result AFTER applying this Pull Request

Joomla is printed

avatar laoneo laoneo - open - 26 Mar 2022
avatar laoneo laoneo - change - 26 Mar 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2022
Category Libraries
avatar laoneo laoneo - change - 26 Mar 2022
The description was changed
avatar laoneo laoneo - edited - 26 Mar 2022
avatar joeforjoomla
joeforjoomla - comment - 26 Mar 2022

I have tested this item successfully on 48262af


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37381.

avatar joeforjoomla joeforjoomla - test_item - 26 Mar 2022 - Tested successfully
avatar joeforjoomla
joeforjoomla - comment - 26 Mar 2022

This PR is correct but it's the contrary:

Actual result BEFORE applying this Pull Request
Joomla is not printed

Expected result AFTER applying this Pull Request
Joomla is printed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37381.

avatar richard67
richard67 - comment - 26 Mar 2022

@laoneo Your testing instructions are indeed inverted regarding actual and expected result.

avatar laoneo
laoneo - comment - 26 Mar 2022

Can you change it? Been away on phone only...

avatar richard67 richard67 - change - 26 Mar 2022
The description was changed
avatar richard67 richard67 - edited - 26 Mar 2022
avatar richard67
richard67 - comment - 26 Mar 2022

Can you change it? Been away on phone only...

@laoneo Done.

avatar richard67
richard67 - comment - 26 Mar 2022

I have tested this item successfully on 48262af


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37381.

avatar richard67 richard67 - test_item - 26 Mar 2022 - Tested successfully
avatar richard67 richard67 - change - 26 Mar 2022
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 26 Mar 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37381.

avatar fancyFranci
fancyFranci - comment - 26 Mar 2022

@laoneo I would like to merge it but you need to update first :)

avatar laoneo laoneo - change - 26 Mar 2022
Labels Added: ?
avatar laoneo
laoneo - comment - 26 Mar 2022

Updated

avatar roland-d roland-d - change - 27 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-27 07:54:41
Closed_By roland-d
Labels Removed: ?
avatar roland-d roland-d - close - 27 Mar 2022
avatar roland-d roland-d - merge - 27 Mar 2022
avatar roland-d
roland-d - comment - 27 Mar 2022

Thanks everybody

Add a Comment

Login with GitHub to post a comment