You are here

function xautoload_ClassLoader::findFile in X Autoload 7.2

For compatibility, it is possible to use the class loader as a finder.

Parameters

string $class: The class to find.

Return value

string File where the class is assumed to be.

File

lib/ClassLoader.php, line 73

Class

xautoload_ClassLoader
Behaves like the Symfony ClassLoader classes.

Code

function findFile($class) {
  $api = new xautoload_InjectedAPI_findFile($class);
  if ($this->finder
    ->findFile($api, $class)) {
    return $api
      ->getFile();
  }
}