[PR #7] [CLOSED] Duplicated paths after addPrefix #3

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/7
Author: @remicollet
Created: 6/29/2015
Status: Closed

Base: 2.7Head: issue-dup-prefix


📝 Commits (2)

  • 6e14229 avoid uneeded duplicate prefix
  • 10bf262 also avoid duplicate in array

📊 Changes

2 files changed (+32 additions, -6 deletions)

View changed files

📝 ClassLoader.php (+9 -5)
📝 Tests/ClassLoaderTest.php (+23 -1)

📄 Description

Having UniversalClassLoader deprecated raise various issues... and ClassLoader doesn't provide the same features... :(

This one avoid duplication of paths for a given prefix, so can improve perf is such case.


🔄 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/7 **Author:** [@remicollet](https://github.com/remicollet) **Created:** 6/29/2015 **Status:** ❌ Closed **Base:** `2.7` ← **Head:** `issue-dup-prefix` --- ### 📝 Commits (2) - [`6e14229`](https://github.com/symfony/class-loader/commit/6e14229cdc54e7873d39e3ed16ce24405086feac) avoid uneeded duplicate prefix - [`10bf262`](https://github.com/symfony/class-loader/commit/10bf262f9cdc1cd1a53f3f569f7bcd7e12116711) also avoid duplicate in array ### 📊 Changes **2 files changed** (+32 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `ClassLoader.php` (+9 -5) 📝 `Tests/ClassLoaderTest.php` (+23 -1) </details> ### 📄 Description Having UniversalClassLoader deprecated raise various issues... and ClassLoader doesn't provide the same features... :( This one avoid duplication of paths for a given prefix, so can improve perf is such case. --- <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#3