how use beforeMatch function in annontation router?

how use beforeMatch function in annontation router? Does anyone have an example?



56.3k

https://docs.phalconphp.com/en/3.0.2/reference/routing.html#match-callbacks

this should work ?