Using `__destruct` to implement default routing?
问题 I'm updating a PHP framework I've written. It used to just use a default behavior for routing. For example consider a case where the request goes to domain.com/package/controller/method ... $url = ["package", "controller", "method"]; //Check if package exists... //Check if controller exists in package... //Check if method exists in controller... This is all well and good, and works perfectly. However, I wanted to add some additional functionality to my router. That functionality being the