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

Option to disable output via server side config #163

Open
userlond opened this issue Nov 21, 2019 · 0 comments
Open

Option to disable output via server side config #163

userlond opened this issue Nov 21, 2019 · 0 comments

Comments

@userlond
Copy link

userlond commented Nov 21, 2019

Is there any option to disable/enable php-console functionality during its inititalisation via server code?

For example. I have some constant, let's call it DEBUG. If DEBUG is set to false, I want to completele mute the extension, as it isn't used on server at all.

The first solution is to make initialisation block conditional, i.e. wrap it into something like if (DEBUG) { // init php-console}, but this way any call to PhpConsole in my code will raise an error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant