Controllers from namespace outside of app #68
danielsetreus
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
I'd accept a PR that adds this if the code is simple enough. Make sure to add tests and update the readme. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Featured merged in #69 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our application setup is a bit... odd, for legacy reasons. In this example I'd like to load annotated controllers from a namespace outside of the application. In essense trying to define directories like
where app_path gives a sub directory like
/home/yada/yada/wtf/
.Problem is the namespace, as the package seems to try and determine the namespace based on its location, with the applications root namespace. So it would try and find controllers under
/home/parent
using namespaceApp\Home\parent\Http\Controllers\Test\PhpTestController
.Would it be possible to, optionally, define directories with a pre-defined root namespace? Perhaps like
Beta Was this translation helpful? Give feedback.
All reactions