Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Aug 2013 at 11:07 UTC
Updated:
9 Jul 2022 at 18:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nonprofit commentedComment #2
nonprofit commentedComment #3
shivansunfire commentedI'm doing it.
Comment #4
shivansunfire commentedI've done these replacements:
\Drupal::service( with $this->container->get(
\Drupal::config( with $this->container->get('config.factory')->get(
\Drupal::state() with $this->container->get('state')
\Drupal::moduleHandler() with $this->container->get('module_handler')
\Drupal::urlGenerator() with $this->container->get('url_generator')
\Drupal::entityQuery( with $this->container->get('entity.query')->get(
\Drupal::typedData() with $this->container->get('typed_data')
\Drupal::TypeData() with $this->container->get('typed_data')
\Drupal::token() with $this->container->get('token')
Comment #5
bloniasz75 commentedAdded one more
Comment #6
andypostPatch applies cleanly, and fixes all
There's 2 more left but they are in valid ones
Comment #7
alexpottNeeds a reroll
Also I'm not sure about that this is really necessary.
Comment #8
runephilosof commentedWorking on reroll
Comment #9
xen commentedTaking over from Rune.
Comment #10
berdir#2087751: [policy, no patch] Stop using $this->container in web tests
You might want to wait with this until that issue is discussed.
Comment #11
xen commentedRerolled.
Found about 30 new occurrences, fixed those too.
The txt file is the rerolled patch before my additions.
Comment #13
xen commentedThat was a bit too fast. New version.
Tests in system all pass.
Comment #14
xen commented[arg, double post]
Comment #15
xen commentedAnd the right status too...
Comment #16
mcrittenden commentedTags
Comment #17
berdirAgain, see #2087751: [policy, no patch] Stop using $this->container in web tests, we should not continue with this until we agreed on that issue.
Comment #18
mile23Setting to NW because #2066993: Use magic methods to sync container property to \Drupal::getContainer in functional tests is go.
Also bumping to 8.1.x.
Comment #19
snehi commentedComment #20
snehi commentedAny final decision can we start with the patch because it will need a huge effort may be some error can be faced.
Comment #21
mile23Comment #22
alexpottI think per module is the wrong scope for this issue see #2066993-21: Use magic methods to sync container property to \Drupal::getContainer in functional tests also we need to answer a question about why we should do this.
Comment #36
smustgrave commentedAppears most of these have already been completed. Closing out but if you feel it's still an issue please reopen.
Comment #37
smustgrave commented