[PR #6] [CLOSED] Add __call() to XcacheClassLoader #1

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

📋 Pull Request Information

Original PR: https://github.com/symfony/class-loader/pull/6
Author: @tstoeckler
Created: 8/21/2014
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • 4e90bd4 Add __call() to XcacheClassLoader

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 XcacheClassLoader.php (+9 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/symfony/class-loader/pull/6 **Author:** [@tstoeckler](https://github.com/tstoeckler) **Created:** 8/21/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`4e90bd4`](https://github.com/symfony/class-loader/commit/4e90bd4e3060c148e7aa87e8137adcf30d5ba876) Add __call() to XcacheClassLoader ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `XcacheClassLoader.php` (+9 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 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#1