Beispiel #1
0
 /**
  * Returns the Puli discovery layer.
  *
  * @return Discovery
  */
 public static function getPuliDiscovery()
 {
     if (!isset(self::$puliDiscovery)) {
         $factory = self::getPuliFactory();
         $repository = $factory->createRepository();
         self::$puliDiscovery = $factory->createDiscovery($repository);
     }
     return self::$puliDiscovery;
 }
 /**
  * Clear the cache.
  */
 public static function clearCache()
 {
     self::$cache = [];
 }