Can I manually get the controller and action which will be executed for some URL? I mean exactly controller/action which will be executed if I request this URL, considering configs (defaults), router rules etc.
Actually I want to know if some URL is accessible for current user.
<?php if (canAccess($current_user_role, "/products/add/")) { // HOW ???
echo $this->tag->linkTo(["/products/add/", "Add a product"])
} ?>