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

Display a warning if someone tries to start the router from anything other than the CLI #225

Open
davidwdan opened this issue Dec 1, 2016 · 0 comments

Comments

@davidwdan
Copy link
Member

if (PHP_SAPI !== 'cli') {
    echo 'Warning: The Thruway Router should be invoked via the CLI version of PHP, not the ' . PHP_SAPI . ' SAPI' . PHP_EOL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants