I try to find all the controller files of a java code repository in php script.(Lets say CustomerController.java for example)
Here is the solution i have tried to achieve this goal:
$fileScan = glob($currentDirectory . "**/*Controller.java");
But it returns nothing. I have also tried different combinations like:
"**Controller*.java", "*/*Controller*.java" etc.
But not luck.
Am i missing something here about glob function?
Use RecursiveDirectoryIterator