Skip to content
Discussion options

You must be logged in to vote

I figured out that this is because I was using public/index.php as 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.php includes 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 add index.php to scanFiles in 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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by esthezia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
1 participant