I have the url /admin/info/1, but $urlMatcher>getCurrentRoute()->getName() returns only /admin/info, fast route in getUri(), it has the full path, why not implement:
$ urlMatcher->getCurrentRoute()->getPath()-> /admin/info/1 and $urlMatcher->getCurrentRoute()->getParams ---> 1
I have the url /admin/info/1, but $urlMatcher>getCurrentRoute()->getName() returns only /admin/info, fast route in getUri(), it has the full path, why not implement:
$ urlMatcher->getCurrentRoute()->getPath()-> /admin/info/1 and $urlMatcher->getCurrentRoute()->getParams ---> 1
getCurrentRoute returns a Route object, if you need uri you can use $urlMatcher->getLastMatchedRequest()->getUri()