Translations:J3.x:Supporting SEF URLs in your component/53/en
From Joomla! Documentation
Since (and implemented in the core components since
as the "new component routers"), there is a new way of working on routers using the
\Joomla\CMS\Component\Router\RouterView
base class. This handles routing by allowing you to register views into your system. So first of all let's build up our component's router constructor: