[PR #6] Add __call() to XcacheClassLoader #5

Closed
opened 2026-01-24 11:43:25 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/symfony/class-loader/pull/6

State: closed
Merged: No


XcacheClassLoader does not implement __call() to forward methods (such as addPsr4()) to the decorated object. I think this is an oversight, although I might be missing something. I just copied the code over from ApcClassLoader, which does implement __call().

This allows to use XcacheClassLoader with Drupal 8, as the addPsr4() method is used there.

**Original Pull Request:** https://github.com/symfony/class-loader/pull/6 **State:** closed **Merged:** No --- XcacheClassLoader does not implement __call() to forward methods (such as addPsr4()) to the decorated object. I think this is an oversight, although I might be missing something. I just copied the code over from ApcClassLoader, which does implement __call(). This allows to use XcacheClassLoader with Drupal 8, as the addPsr4() method is used there.
admin added the pull-request label 2026-01-24 11:43:25 +01:00
admin closed this issue 2026-01-24 11:43:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: symfony/class-loader#5