Before:
------ --------------------------------------------------------------------------------------------------------------------------------------------
Line stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php
------ --------------------------------------------------------------------------------------------------------------------------------------------
80 Usage of deprecated trait Drupal\Core\Routing\UrlGeneratorTrait in class Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Url instead.
159 \Drupal calls should be avoided in classes, use dependency injection instead
203 Call to deprecated method url() of class Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Url::fromUri() instead.
------ --------------------------------------------------------------------------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff.txt | 1.47 KB | andypost |
#6 | 3072433-6.patch | 1.85 KB | andypost |
|
Comments
Comment #2
andypostThere's no way to inject container into stream wrappers yet, so just add @todo pointing to #3048126: Make it easier to inject the FileSystem service
Comment #3
andypostComment #4
vrs11 CreditAttribution: vrs11 as a volunteer commentedComment #5
andypostthis a bit out of scope of deprecated code clean-up but I went ahead and fixed it
Comment #6
andypostStill better not introduce new method's as fate unclear
Comment #7
andypostthat's should be enough
Comment #9
valthebaldCommitted to 8.x-1.x, thank you!
Comment #11
Kristen PolPer a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.