-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I figured out that this is because I was using The thing is that I am looking for a general way to register any symbols that might be used by an application, and I know for sure that For example, I have a user-defined constant in I'm still looking into it, and trying to figure out a way. Any input is much appreciated! Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
In my opinion, Closing this. |
Beta Was this translation helpful? Give feedback.

I figured out that this is because I was using
public/index.phpas an autoload file, which was interpreted by the PHP runtime, hence the output.The thing is that I am looking for a general way to register any symbols that might be used by an application, and I know for sure that
index.phpincludes everything, because it's the entrypoint into the application, and it bootstraps everything.For example, I have a user-defined constant in
public/index.php, which is then referenced in another file, and if I addindex.phptoscanFilesin config, I still get an error saying undefined constant.I'm still looking into it, and trying to figure out a way.
Any input is much appreciated!
Thank you.