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
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: