Issue Details (XML | Word | Printable)

Key: DCOM-7
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Roman S. Borschel
Reporter: Michael Ridgway
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Doctrine Common

Slight Refactor of ClassLoader

Created: 06/May/10 09:27 AM   Updated: 13/Jun/10 07:23 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0-BETA2

File Attachments: 1. File patch.diff (1 kB)



 Description  « Hide
This is a rather trivial issue: I'd like to add a function to the Common\ClassLoader called getClassPath($className) or something named similarly so that we are able to find where an autoloader will look for the specified class. The autoloader doesn't check for file existence normally (as it shouldn't) but there are cases where the developer does need to make sure that the file exists before a class is attempted to be loaded.

I've attached a patch for the changes that I'm proposing.



 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Roman S. Borschel added a comment - 06/May/10 09:45 AM
We have another idea for these issues (basically for the issue of using class_exists(..., true) and your new method may even complement this nicely. I will let you know what I mean here soon.

Roman S. Borschel added a comment - 13/Jun/10 07:23 AM
There is now ClassLoader#classExists as well as ClassLoader#getClassLoader available.