Support from Acquia helps fund testing for Drupal Acquia logo

Comments

benjy’s picture

Issue tags: +Novice

Tagging

paravibe’s picture

Assigned: Unassigned » paravibe
Status: Active » Needs review
FileSize
31.49 KB

Done.
Please review and commit.

benjy’s picture

Status: Needs review » Needs work

There is no need for \Drupal to be absolute. We only do that in documentation.

+++ b/core/includes/bootstrap.incundefined
@@ -1579,7 +1579,7 @@ function watchdog($type, $message, array $variables = NULL, $severity = WATCHDOG
-    foreach (module_implements('watchdog') as $module) {
+    foreach (\Drupal::moduleHandler()->getImplementations('watchdog') as $module) {
       $function = $module . '_watchdog';
       $function($log_entry);
     }

paravibe’s picture

Status: Needs work » Needs review
FileSize
31.44 KB

OK, thanks benjy.
Left it only for these two files:
core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php
core/lib/Drupal/Core/Entity/DatabaseStorageController.php

Status: Needs review » Needs work

The last submitted patch, 2045919-4-replace-module_implements-calls.patch, failed testing.

paravibe’s picture

I continue to work on this.

benjy’s picture

drupalarv, seems I mislead you a bit on the absolute paths vs relative. They have to be absolute in files with a namespace (which I didn't realise). Which is what caused your test failures.

Here's the relevant link to the docs so you can see for yourself :) https://drupal.org/node/1353118

paravibe’s picture

Status: Needs work » Needs review
FileSize
31.43 KB

Thanks benjy!
This patch should be good.

paravibe’s picture

New patch.
Replace reference in comments and some other files.

Status: Needs review » Needs work
Issue tags: -Novice

The last submitted patch, 2045919-9-replace-module_implements-calls.patch, failed testing.

paravibe’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 2045919-9-replace-module_implements-calls.patch, failed testing.

paravibe’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 2045919-9-replace-module_implements-calls.patch, failed testing.

paravibe’s picture

Status: Needs work » Needs review
Issue tags: +Novice
FileSize
40.28 KB

A new one. With last core changes.

Status: Needs review » Needs work

The last submitted patch, 2045919-16-replace-module_implements-calls.patch, failed testing.

paravibe’s picture

Status: Needs work » Needs review
FileSize
40.16 KB

Just forget to write absolute \Drupal path in some files, sorry.

benjy’s picture

Status: Needs review » Needs work

This patch no longer applies. If we can get a re-roll we can try get this in ASAP.

paravibe’s picture

Status: Needs work » Needs review
FileSize
39.49 KB

New one. Will be good if we could apply it ASAP.

benjy’s picture

Status: Needs review » Reviewed & tested by the community

OK Let's try get this in :)

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

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

ianthomas_uk’s picture

The watchdog function in bootstrap.inc still calls function_exists('module_implements'). This needs to be removed or updated (possibly to class_exists('\Drupal')?)

ianthomas_uk’s picture

See #325169-81: Move error/exception handler higher up in the bootstrap process for why this function_exists is there.

We should be able to just remove it, but it will need manual testing to confirm there isn't another function that watchdog is dependent on (possibly t).

ianthomas_uk’s picture

Issue tags: -Novice +@deprecated
ianthomas_uk’s picture

Status: Active » Closed (fixed)

watchdog() has been rewritten, so #24 no longer applies