Right now the query factory and the query itself require both the config factory and the config storage.
A year ago (#2188595: Create a ConfigManager to be able to remove config.inc) a listAll() was added to config factory, so Query has no reason to use the storage directly anymore.
(ConfigEntityStorage also uses only the config factory nowadays as well, so this would be consistent with it).

This is an internal cleanup that doesn't any external code.

Comments

bojanz’s picture

Status: Active » Needs review
StatusFileSize
new3.88 KB

Status: Needs review » Needs work

The last submitted patch, 1: 2425497-1-stop-injecting-storage-to-config-query.patch, failed testing.

bojanz’s picture

Status: Needs work » Needs review
StatusFileSize
new4.58 KB

Less stupid this time.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

I remember grumbling about needing both of these, but there was no listAll() on config.factory back then.
+1 for cleaning this up now.

dawehner’s picture

Issue tags: +Quickfix

Great simplification.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: 2425497-3-stop-injecting-storage-to-config-query.patch, failed testing.

Status: Needs work » Needs review
tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Random fail

alexpott’s picture

The reason I've been hesitating from committing this obvious clean up is because I'm still thinking about how we can optimise query config entities.

webchick’s picture

Assigned: Unassigned » alexpott

Sending over Alex's way given #9.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

#2430219: Implement a key value store to optimise config entity lookups won't need the storage so let's proceed here because less dependencies and complexity here is a good thing. Committed 78fd4d0 and pushed to 8.0.x. Thanks!

  • alexpott committed 78fd4d0 on 8.0.x
    Issue #2425497 by bojanz: Stop injecting the config storage to the...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.