Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In both http://cgit.drupalcode.org/drupalmoduleupgrader/tree/Drupal7to8/Sniffs/C... and http://cgit.drupalcode.org/drupalmoduleupgrader/tree/Drupal7to8/Sniffs/B... we need to write classes out into a "src/" directory, not lib/Drupal/modulename.
Comment | File | Size | Author |
---|---|---|---|
#2 | psr_0_ is_now_psr_4-2320243-2.patch | 4.72 KB | undertext |
Comments
Comment #1
undertext CreditAttribution: undertext commentedComment #2
undertext CreditAttribution: undertext commentedThis patch removes all PSR-0 related code.
Comment #3
webchickWow, great work! That's even more stuff than I remembered was in there about PSR-0. :D Tested it out and seems to work well; the block plugin is now in a /src/ directory vs. a /lib/Drupal/pants one.
The only thing I see off-hand, which is incredibly minor, is:
We no longer need that "Future proofing" comment. (This can always be fixed on commit.)
I'd merge this in myself, but phenaproxima is in the middle of a big refactor atm and I don't want to make that any harder to merge in than necessary.
Comment #4
phenaproximaGo ahead and merge it in. I haven't touched the PSR-0 stuff, so it should be OK. :)
Comment #6
webchickRoger that!
Committed and pushed to 8.x. :) Thanks a lot, undertext! If you're up for another, there's a second novice issue at #2320237: config/ directory should now be config/install.
Comment #9
m1r1k CreditAttribution: m1r1k commented