You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem does this feature proposal attempt to solve?
We can add a namespace to the config file and allow the lighthouse to search there for the classes. The namespaces can only be a folder and the class must be inside the folder. If the folder is nested then we have to add all of them. By adding wildcard functionality we can let the client just add the parent namespace, then we test the class name against all the files inside the main folder or nested folders.
If the wildcard exists in the namespace, then get all the directories inside the path with $fileSystem->directories($path). Try this again for the nested folders. Forming and testing the existence of the class will be the same as before.
Open questions
Is there any predefined way to convert a namespace to the path?
If the answer is no for 1, based on the PSR-4, are these correct?
Namespace
Path
App\Models\*
app/Models
App\Models\Posts\*
app/Models/Posts
The text was updated successfully, but these errors were encountered:
What problem does this feature proposal attempt to solve?
We can add a namespace to the config file and allow the lighthouse to search there for the classes. The namespaces can only be a folder and the class must be inside the folder. If the folder is nested then we have to add all of them. By adding wildcard functionality we can let the client just add the parent namespace, then we test the class name against all the files inside the main folder or nested folders.
With the current solution:
With the proposed feature:
Which possible solutions should be considered?
If the wildcard exists in the namespace, then get all the directories inside the path with
$fileSystem->directories($path)
. Try this again for the nested folders. Forming and testing the existence of the class will be the same as before.Open questions
The text was updated successfully, but these errors were encountered: