private static function getPuliDiscovery()
    {
        if (!isset(self::$puliDiscovery)) {
            $factory = self::getPuliFactory();
            $repository = $factory->createRepository();

            self::$puliDiscovery = $factory->createDiscovery($repository);
        }

        return self::$puliDiscovery;
    }
private static function getPuliDiscovery()
    {
        if (!isset(self::$puliDiscovery)) {
            $factory = self::getPuliFactory();
            $repository = $factory->createRepository();

            self::$puliDiscovery = $factory->createDiscovery($repository);
        }

        return self::$puliDiscovery;
    }
private static function getPuliDiscovery ( ) { if ( ! isset ( self :: $ puliDiscovery ) ) { $ factory = self :: getPuliFactory ( ) ; $ repository = $ factory -> createRepository ( ) ; self :: $ puliDiscovery = $ factory -> createDiscovery ( $ repository ) ; } return self :: $ puliDiscovery ; }
Returns the Puli discovery layer.

@return Discovery

@throws PuliUnavailableException
Returns the Puli discovery layer .