How to get the file path where a class would be loaded from while using a composer autoload?
- 阅读更多 关于 How to get the file path where a class would be loaded from while using a composer autoload?
问题 A PHP 7.1 application uses composer's autoloader to find class definitions. The namespace mappings are defined in a composer.json file. The application also uses ICU module's ResourceBundle classes to load localisable texts from *.res files. Each class with localisable texts has its own set of *.res files (one file per language). The code providing the localisation supports gets a fully qualified name of the class whose texts it should load. I would like to have the *.res files located next