public function addTemplatePath($namespace, $path)
    {
        if (!is_string($namespace) || !is_string($path) || empty($namespace) || empty($path)) {
            throw new \InvalidArgumentException('Template namespace and path must be a not empty string');
        }

        $this->paths[$namespace] = $this->normalizePath($path);
    }