The entity_reference_integrity_enforce.module throws a "Fatal error: Call to undefined method Drupal::classResolver()"

The error was seen both with Drupal core 8.2.4 and with 8.1.7 for URLs like /admin/config/media/file-system

I have attached a patch that solved the issue for me.

Comments

Gogowitsch created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, class_resolver.patch, failed testing.

gogowitsch’s picture

Status: Needs work » Needs review
StatusFileSize
new1.64 KB
sam152’s picture

I've kicked off some tests on different versions:

https://www.drupal.org/pift-ci-job/561004
https://www.drupal.org/pift-ci-job/561003
https://www.drupal.org/pift-ci-job/561002

Lets see if the coverage is any good.

gogowitsch’s picture

Looks good, the tests succeeded.

  • Sam152 committed 63fa6c1 on 8.x-1.x authored by Gogowitsch
    Issue #2839364 by Gogowitsch: Fatal PHP error during service resolution
    
sam152’s picture

Status: Needs review » Fixed

Nice one, thanks.

sam152’s picture

Status: Fixed » Closed (fixed)

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