public static function getSubscribers(string $hook)
    {
        if (!isset(self::$hooks[$hook]))
            return array();

        $subs = [];
        foreach (self::$hooks[$hook] as $h)
            $subs[] = $h['callback'];

        return $subs;
    }
public static function getSubscribers(string $hook)
    {
        if (!isset(self::$hooks[$hook]))
            return array();

        $subs = [];
        foreach (self::$hooks[$hook] as $h)
            $subs[] = $h['callback'];

        return $subs;
    }
public static function getSubscribers ( string $ hook ) { if ( ! isset ( self :: $ hooks [ $ hook ] ) ) return array ( ) ; $ subs = [ ] ; foreach ( self :: $ hooks [ $ hook ] as $ h ) $ subs [ ] = $ h [ 'callback' ] ; return $ subs ; }
Return the subscribers for the hook.
@param string $hook The hook name
@return array The list of subscribers to that hook
Return the subscribers for the hook .