8000 added a DebuClassLoader::findFile() method to make the wrapping less … · combro2k/symfony@0690709 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0690709

Browse files
committed
added a DebuClassLoader::findFile() method to make the wrapping less invasive
1 parent 7b234db commit 0690709

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Symfony/Component/ClassLoader/DebugClassLoader.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ public function unregister()
6969
spl_autoload_unregister(array($this, 'loadClass'));
7070
}
7171

72+
/**
73+
* Finds a file by class name
74+
*
75+
* @param string $class A class name to resolve to file
76+
*
77+
* @return string|null
78+
*/
79+
public function findFile($class)
80+
{
81+
return $this->classFinder->findFile($class);
82+
}
83+
7284
/**
7385
* Loads the given class or interface.
7486
*

0 commit comments

Comments
 (0)
0