protected function getRouteAndParameters($params)
    {
        if (is_string($params)) {
            return [$params, []];
        }

        return [
            // The first position in the array is the route or action name
            array_shift($params),
            // After that they are parameters and they could be dynamic
            $this->replaceDynamicParameters($params)
        ];
    }