XF 2.0 Extending route builder callback...

Liam W

Well-known member
I'm currently trying to make an add-on to change how the category page system work, so that it only applies to certain categories.

However, in XF2, you've done away with route classes and now only have a callback. Is there a way to change that callback during execution?



Well-known member
It looks like you can extend XF\Mvc\Router and also hook the event router_public_setup for this.

(router_admin_setup doesn't look to exist)