Closed (fixed)
Project:
Facets
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2022 at 11:37 UTC
Updated:
11 Nov 2022 at 07:29 UTC
Jump to comment: Most recent
The constuctor of the SearchApiDisplay class (facet source) expects classes in it's constructor instead of interfaces.
We should change that and expect interfaces, because this will break, if a non supported class is injected to the plugin (e.g. someone decorates the ModuleHandler).
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
marios anagnostopoulos commentedI now realized that this is a duplicate of https://www.drupal.org/project/facets/issues/3308343, since the ModuleHandlerInterface is the important one I guess.
If no other constructor properties need to be addressed (e.g. the RequestInterface, QueryHelperInterface) feel free to close a dup.
Comment #3
dpi👍
Comment #4
marios anagnostopoulos commentedReopened as per a comment in slack.
Comment #6
marios anagnostopoulos commentedTests were failing because I executed them against 7.3, whilst there is 7.4 typehinting in search_api
7.4+ seems ok so I will be changing to needs review.
Comment #8
mkalkbrenner