Can Patchwork be used to replace the exit method? #132
BlakeCThompson
started this conversation in
General
Replies: 1 comment
-
Yes, it is possible. In the same directory that your entry script is in, create a {
"redefinable-internals": [
"die",
"exit"
]
} Once you have it, proceed with the redefining as usual: foreach (['die', 'exit'] as $construct) {
Patchwork\redefine($construct, function() {
// ...
});
} Please let me know if you need some more assistance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to overwrite the exit method so that I can test my controller response. Is this something I can do with patchwork?
Beta Was this translation helpful? Give feedback.
All reactions