protected function route($method, $uri, $handler, $middlewares)
    {
        if (is_string($handler) === true)
        {
            $namespace = $this->namespace;

            $namespace !== '' && $namespace .= '\\';

            $handler = $namespace . $handler;
        }

        return new Route($method, $uri, $handler, $middlewares);
    }