enable_quit
enable_quit($enable_exit); - allow or prohibit script execution by the command $app->quit().
The function accepts parameters as input:
$enable_exit – flag prohibiting the execution of the $app->quit command. if true - exit is allowed, and if false - it is locked.
After testing, the function returns the result of its work to the script :
true – successfully worked
false – operation failed