I’ve been able to reproduce this issue using the following repos:
- Bedrock: https://github.com/bight/bedrock-controller
- Sage Controller: https://github.com/bight/sage-controller
The latter was created using composer create-project roots/sage:dev-master sage-controller. The only modification I made was changing the name in composer.json so that I could install the fork as a VCS repository.
I’ll note that the App, Home and About classes declared in app/controllers are not in the array of classes returned by get_declared_classes(). I can confirm that the files are being included by Bedrock’s autoloader but the classes themselves are not available. My assumption is that this has something to do with this method in roots/sage-lib and the context in which classes are loaded (at the Bedrock level vs. at the Sage level) but I don’t know enough about Illuminate/View to speculate any further.