private function extractParameters($matches, CompiledRoute $compiledRoute)
    {
        $params = [];
        foreach ($compiledRoute->getVariables() as $index => $var) {
            $params[$var['name']] = $matches[($index + 1)][0];
        }

        return $params;
    }