Filter arguments - howto? |
Creating my RESTful API and I'd like to use the filter arguments as described in the docs:
http://codeigniter.com/user_guide/incomi...ng-filters However, the FilterInterface signatures for after() and before() doesn't allow me to access the arguments passed (even though they are passed from \CodeIgniter\Filters::run). As I cannot create my own implementations of after() and before() that includes the argument without breaking \CodeIgniter\Filters\FilterInterface I'm at a loss here. Realizing that a patch for this would break all code implementing \CodeIgniter\Filters\FilterInterface I don't find that to be a good solution, but still I'm working on a patch. Or, maybe I am missing something completely?
Saw someone made a fix here, maybe its you?
https://github.com/codeigniter4/CodeIgniter4/pull/3217 Maybe someone can help and check if this is the right solution? Or other alternatives there?
Yup, that PR is mine. Since that adds a new interface instead of fixing the actual bug, the jury is still out how to fix the issue. Seems like 4.0.4 will be released without a fix.
|
Welcome Guest, Not a member yet? Register Sign In |