? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
5 May 2019

Adds getMenu into the \Joomla\CMS\Application\CMSApplicationInterface. To test ensure menu's keep working in both the frontend and backend of the core

avatar wilsonge wilsonge - open - 5 May 2019
avatar wilsonge wilsonge - change - 5 May 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 May 2019
Category Libraries
avatar wilsonge wilsonge - change - 5 May 2019
Title
Add getMenu to the CMSApplicationInterface. Part of #24587
[4.0] Add getMenu to the CMSApplicationInterface. Part of #24587
avatar wilsonge wilsonge - edited - 5 May 2019
avatar wilsonge wilsonge - change - 5 May 2019
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 7 May 2019

I have tested this item successfully on b9653f2


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

avatar SharkyKZ SharkyKZ - test_item - 7 May 2019 - Tested successfully
avatar wilsonge wilsonge - change - 7 May 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-05-07 14:58:02
Closed_By wilsonge
avatar wilsonge wilsonge - close - 7 May 2019
avatar wilsonge wilsonge - merge - 7 May 2019
avatar SniperSister
SniperSister - comment - 7 May 2019

@wilsonge ConsoleApplication is broken because of this merge:

Class Joomla\CMS\Application\ConsoleApplication contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Joomla\CMS\Application\CMSApplicationInterface::getMenu)

Making the ConsoleApplication implement the getMenu method feels weird, I would keep it in SiteApplication.

avatar wilsonge
wilsonge - comment - 7 May 2019

I don't think it should that way. Plugin's use it and plugins work across all application types including console. We shouldn't have to do method exists in every application. I think we probably need to do the same ugly thing as we do in the InstallationApplication and just have it return null consistently

avatar SniperSister
SniperSister - comment - 7 May 2019

Ok, I trust you here :) can you do the PR?

avatar wilsonge
wilsonge - comment - 8 May 2019

Thanks for doing it! Sorry been on a train all day today so no good interweb

Add a Comment

Login with GitHub to post a comment