Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvment] No Need to Return Namespace for Auto-Register Method #65

Closed
usernane opened this issue Jul 13, 2021 · 0 comments · Fixed by #66
Closed

[Improvment] No Need to Return Namespace for Auto-Register Method #65

usernane opened this issue Jul 13, 2021 · 0 comments · Fixed by #66

Comments

@usernane
Copy link
Member

Problem

In the method WebFioriApp::autoregister(), it is noticed that the namespace of the class must be returned in order to be registered. The return statement can be removed if application is well structured.

Solution

To auto-register classes without returning the namespace, we have to construct the namespace of the class using two arguments which we already have. The first one is the name of the application folder which is represented by the constant APP_DIR_NAME and the other argument which is the name of the folder that holds the classes that will be auto-registered.

usernane added a commit that referenced this issue Jul 13, 2021
usernane added a commit that referenced this issue Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant