[4.2] Inject the database into the finder classes#37611
[4.2] Inject the database into the finder classes#37611roland-d merged 7 commits intojoomla:4.2-devfrom
Conversation
|
I have tested this item ✅ successfully on 3911c15 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37611. |
|
Sorry, not able to test it. In Joomla 4.2.0-alpha2-dev with PHP 8.0 and 8.1: Error before apply the path, when trying to create Smart Search module: An error has occurred. 0 Attempt to assign property "params" on null. In Joomla 4.1.3-dev with PHP 8.1: if I apply the path I obtain an error in frontend: ClassNotFoundError. Details: Symfony\Component\ErrorHandler\Error\ClassNotFoundError: at /shared/httpd/Joomla_4.1.3-dev/htdocs/administrator/components/com_finder/src/Service/HTML/Finder.php:26 Thank you and best regards This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37611. |
|
@pabloarias Make sure you are on the 4.2 branch! |
|
Thanks everybody. |
Summary of Changes
Ongoing effort to inject the database into components and get rid of the deprecated Factory::getDbo(); calls. This pr injects the database in the finder component instead of using the factory to get it from.
Testing Instructions
Actual result BEFORE applying this Pull Request
All works.
Expected result AFTER applying this Pull Request
All works.