The documentation you are viewing is for an older version of this component.
Switch to the latest (v2) version.
After installation, register dot-router in your project by adding the below line to your configuration aggregator (usually: config/config.php):
Dot\Router\ConfigProvider::class,