(from /home/chedong/.local/share/rdoc)
| Use Case | Command | Description |
|---|---|---|
| 🔧 Define a before callback | before :method_name |
Register a method to run before every request dispatch |
| 🔧 Define an after callback | after :method_name |
Register a method to run after every request dispatch |
| 🔧 Define a block callback | before { |controller| ... } |
Pass a block to execute before/after dispatch |
| 🛠️ Create a new callback middleware | new(controller, callbacks) |
Instantiate the middleware with a controller and callbacks |
| 🛠️ Invoke the call chain | call(env) |
Execute the callbacks and dispatch the request |
Provides callbacks to be executed before and after dispatching the request.
afterbeforenewcallGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:40 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format