public static function createRoot(UrlGeneratorInterface $urlGenerator, $basePath)
    {
        $root = new static('root', $basePath);
        $root->urlGenerator = $urlGenerator;

        return $root;
    }
public static function createRoot(UrlGeneratorInterface $urlGenerator, $basePath)
    {
        $root = new static('root', $basePath);
        $root->urlGenerator = $urlGenerator;

        return $root;
    }
public static function createRoot ( UrlGeneratorInterface $ urlGenerator , $ basePath ) { $ root = new static ( 'root' , $ basePath ) ; $ root -> urlGenerator = $ urlGenerator ; return $ root ; }
Create the root menu entry.

@param UrlGeneratorInterface $urlGenerator
@param string                $basePath

@return MenuEntry
Create the root menu entry .