public function getRoot()
    {
        $cacheKey = 'coral.sitemap.nodes';
        if(false === ($root = $this->cache->fetch($cacheKey)))
        {
            $root = $this->readNode($this->contentPath);

            if(!$this->cache->save($cacheKey, $root))
            {
                // @codeCoverageIgnoreStart
                throw new \Coral\SiteBundle\Exception\SitemapException("Unable to store into cache.");
                // @codeCoverageIgnoreEnd
            }
        }

        return $root;
    }
public function getRoot()
    {
        $cacheKey = 'coral.sitemap.nodes';
        if(false === ($root = $this->cache->fetch($cacheKey)))
        {
            $root = $this->readNode($this->contentPath);

            if(!$this->cache->save($cacheKey, $root))
            {
                // @codeCoverageIgnoreStart
                throw new \Coral\SiteBundle\Exception\SitemapException("Unable to store into cache.");
                // @codeCoverageIgnoreEnd
            }
        }

        return $root;
    }
public function getRoot ( ) { $ cacheKey = 'coral.sitemap.nodes' ; if ( false === ( $ root = $ this -> cache -> fetch ( $ cacheKey ) ) ) { $ root = $ this -> readNode ( $ this -> contentPath ) ; if ( ! $ this -> cache -> save ( $ cacheKey , $ root ) ) { // @codeCoverageIgnoreStart throw new \ Coral \ SiteBundle \ Exception \ SitemapException ( "Unable to store into cache." ) ; // @codeCoverageIgnoreEnd } } return $ root ; }
Get Root node
@return [type] [description]
Get Root node