User tests: Successful: Unsuccessful:
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');
.
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;
Joomla is not printed.
Joomla is printed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
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.
Can you change it? Been away on phone only...
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
RTC
Labels |
Added:
?
|
Updated
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:
?
|
Thanks everybody
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.