[4.0] Get menu directly in com_tags menu route helper#30039
[4.0] Get menu directly in com_tags menu route helper#30039richard67 merged 3 commits intojoomla:4.0-devfrom SharkyKZ:j4/fix/cli-finder-indexer-tags
Conversation
|
This isn’t a proper fix. Last I knew the finder CLI wasn’t booting up the environment correctly and that still needs to be addressed (like making it a proper console command would be a good idea). |
|
How is that going to fix the issue though? Console application doesn't have |
|
Then there needs to be a type check. The Or, just skip going through the application and directly call |
|
Switched to |
|
Any explanation on why getting it from the container is wrong? |
|
Unfortunately, a lot of the core architecture still isn't in a great place to handle dependency injection for one reason or another (static methods accessing globals, classes randomly instantiated in places where there isn't a sane way to support injection, core still being designed around a lazy load paradigm meaning if you're trying to use something that doesn't originate out of the |
|
Well, I just needed to get a specific application instance for now. |
|
I have tested this item ✅ successfully on 39a4193 Starting Indexer
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30039. |
|
I have tested this item ✅ successfully on 39a4193 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30039. |
|
RTC. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30039. |
|
Thanks! |
…outs * '4.0-dev' of github.com:joomla/joomla-cms: (612 commits) [4.0] Smart Search: Fixing ordering, order direction and disabled button (joomla#29474) [4.0] Generate routed Modal links for iframes when not on the root (joomla#30007) [4.0] Get menu directly in com_tags menu route helper (joomla#30039) Remove collapse when resizing from mobile to desktop (joomla#30132) [4.0] Wrap component output in `main` element to make Cassiopeia more accessible (joomla#29870) [4.0] Webauthn gmp warning (joomla#29731) [4.0] Refactor to return early, remove if depths and throw NotAllowed (joomla#29694) [4.0] CLI help text (joomla#29811) Feature/draggable typo fixes (joomla#29987) [4.0] Removing unnecessary workaround in finder indexer (joomla#30037) [4.0] Optimizing Smart Search for larger content (joomla#30008) [4.0] Fix js ajax for pre update checker (joomla#29980) [4.0] Cassiopea: Fixing modals custom-select fields display (joomla#30097) [4.0][com_fields] Fix draggable sorting (joomla#30094) [4.0] Correct incorrect @return documentation (joomla#30092) [4.0] Menu items modal: adding missing filters (joomla#30087) short to long php open tags with echo (joomla#30089) Use new Toolbar (joomla#30085) [4.0] Center status/date created headers (joomla#29249) [4.0] Fix Cassiopea searchtools alignment in modals (joomla#30077) ... # Conflicts: # administrator/components/com_templates/src/View/Template/HtmlView.php # installation/sql/postgresql/base.sql # libraries/src/Application/AdministratorApplication.php # libraries/src/Application/SiteApplication.php
* Get application from container * Get menu directly * Remove import
Summary of Changes
Fixes error when running Finder CLI.
Testing Instructions
Install Testing Sample Data or create some articles with tags.
Run
php cli/finder_indexer.phpActual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
No errors.
Documentation Changes Required