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.
Not strictly needed to remove the registry but it would be nice to have this in :). Needs to happen anyway...
Comment | File | Size | Author |
---|---|---|---|
#9 | theme_registry_psr0_done_right_for_real.patch | 11.41 KB | aspilicious |
#6 | theme_registry_psr0_done_right.patch | 10.9 KB | amateescu |
theme_registry_psr0.patch | 11.31 KB | aspilicious | |
Comments
Comment #2
aspilicious CreditAttribution: aspilicious commentedHmm this is not possible?
Comment #3
amateescu CreditAttribution: amateescu commentedSee the problem? :)
Same here.
Comment #4
tstoecklerThis is removed correctly here, but this line isn't included in the new core/lib/Drupal/Core/Utility/ThemeRegistry.php
That will the cause of at least some failures.
It seems ThemeRegistry is not used anywhere in the file?
Comment #5
aspilicious CreditAttribution: aspilicious commentedI don't need to add "use Drupal\Core\Utility\CacheArray;" because I'm alrdy in the Drupal\Core\Utility namespace.
And "_theme_load_registry" uses the ThemeRegistry.
I just think we can't move this to psr-0 yet because of the stupid drupal bootstrap process that initializes the autoloader to late.
Comment #6
amateescu CreditAttribution: amateescu commented@aspilicious, oh really?
@tstoeckler:
1) should be there now
2) it is used in theme.inc:337 (with the patch applied, don't know the line number without the patch)
Comment #7
aspilicious CreditAttribution: aspilicious commentedThis isn't needed as I said before. We are alrdy in the Drupal\Core\Utility namespace...
15 days to next Drupal core point release.
Comment #8
aspilicious CreditAttribution: aspilicious commentedAAAAAH I forgot to add Drupal in the namespace. So this is needs work because of what I said earlier.
I'll reroll this.
Comment #9
aspilicious CreditAttribution: aspilicious commentedThanks for the fast reviews and the patch reroll else I wouldn't have seen my mistake.
Comment #10
RobLoachNicely done, all. The ThemeRegistry test is passing green, and the test bot is happy.
Comment #11
webchickCommitted and pushed to 8.x. Thanks!