Skip to content

Commit

Permalink
[DebugClassLoader] Readd findFile() method
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Jan 10, 2019
1 parent 4ba6397 commit 32cfe3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Symfony/Component/Debug/DebugClassLoader.php
Expand Up @@ -128,6 +128,18 @@ public static function disable()
}
}

/**
* Finds a file by class name.
*
* @param string $class
*
* @return mixed Depends of the wrapped class loader "findFile" method implementation
*/
public function findFile($class)
{
return $this->isFinder ? $this->classLoader[0]->findFile($class) : false;
}

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

0 comments on commit 32cfe3f

Please sign in to comment.