Install this library using composer:
$ composer require wshafer/mezzio-symfony-router
To enable this router using the Mezzio Skeleton, make sure that
WShafer\Mezzio\Symfony\Router\ConfigProvider::class was added to your
config/config.php. In addition you'll want to remove
your current router's config provider that was installed during setup.
To enable caching you need to add the following config:
return [ 'router' => [ 'symfony' => [ 'cache_enabled' => true, 'cache_file' => /my/cache/dir/cache_file.txt ], ], ];