function ExampleFinder::getExamplePathFromExampleDirectory
Get example filepath based on the example directory inside your project.
1 call to ExampleFinder::getExamplePathFromExampleDirectory()
- ExampleFinder::getExampleFileContents in vendor/
phpdocumentor/ reflection-docblock/ src/ DocBlock/ ExampleFinder.php - Attempts to find the requested example file and returns its contents or null if no file was found.
File
-
vendor/
phpdocumentor/ reflection-docblock/ src/ DocBlock/ ExampleFinder.php, line 133
Class
- ExampleFinder
- Class used to find an example file's location based on a given ExampleDescriptor.
Namespace
phpDocumentor\Reflection\DocBlockCode
private function getExamplePathFromExampleDirectory(string $file) : string {
return getcwd() . DIRECTORY_SEPARATOR . 'examples' . DIRECTORY_SEPARATOR . $file;
}