[DCOM-7] Slight Refactor of ClassLoader Created: 06/May/10  Updated: 13/Jun/10  Resolved: 13/Jun/10

Status: Closed
Project: Doctrine Common
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0-BETA2
Security Level: All

Type: Improvement Priority: Minor
Reporter: Michael Ridgway Assignee: Roman S. Borschel
Resolution: Fixed Votes: 0
Labels: None

Attachments: File patch.diff    


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.

Comment by Roman S. Borschel [ 06/May/10 ]

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.

Comment by Roman S. Borschel [ 13/Jun/10 ]

There is now ClassLoader#classExists as well as ClassLoader#getClassLoader available.

Generated at Mon Nov 30 10:12:27 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.