Have you tried to do it, e.g., from a generic plugin. Say, extend Dispatcher
, override handle404()
, hook into Dispatcher::dispatch
and replace the dispatcher with the extended one through $request->setDispatcher()
? But I must confess that don’t know if it works.
1 Like