This PHP class matches url against predefined route patterns