Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a DebuClassLoader::findFile() method to make the wrapping less invasive #7168

Merged
merged 1 commit into from Feb 27, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Symfony/Component/ClassLoader/DebugClassLoader.php
Expand Up @@ -69,6 +69,18 @@ public function unregister()
spl_autoload_unregister(array($this, 'loadClass'));
}

/**
* Finds a file by class name
*
* @param string $class A class name to resolve to file
*
* @return string|null
*/
public function findFile($class)
{
return $this->classFinder->findFile($class);
}

/**
* Loads the given class or interface.
*
Expand Down