19 private static $commitCallbacks = [];
26 public static function attach($hashKey, $callback)
28 self::$commitCallbacks[$hashKey][] = $callback;
35 public static function clear($hashKey)
37 self::$commitCallbacks[$hashKey] = [];
44 public static function get($hashKey)
46 if (!isset(self::$commitCallbacks[$hashKey])) {
49 $callbacks = self::$commitCallbacks[$hashKey];
50 self::$commitCallbacks[$hashKey] = [];
static attach($hashKey, $callback)