protected static function reinstallHandlers(array $handlers)
    {
        $serializer = Util::getClosureSerializer();
        foreach ($handlers as $hookName => $serializedHandlers) {
            foreach ($serializedHandlers as $index => $handler) {
                if (is_string($handler)) {
                    $handler = $serializer->unserialize($handler);
                }
                self::$hookName($handler, $index === 0);
            }
        }
    }
protected static function reinstallHandlers(array $handlers)
    {
        $serializer = Util::getClosureSerializer();
        foreach ($handlers as $hookName => $serializedHandlers) {
            foreach ($serializedHandlers as $index => $handler) {
                if (is_string($handler)) {
                    $handler = $serializer->unserialize($handler);
                }
                self::$hookName($handler, $index === 0);
            }
        }
    }
protected static function reinstallHandlers ( array $ handlers ) { $ serializer = Util :: getClosureSerializer ( ) ; foreach ( $ handlers as $ hookName => $ serializedHandlers ) { foreach ( $ serializedHandlers as $ index => $ handler ) { if ( is_string ( $ handler ) ) { $ handler = $ serializer -> unserialize ( $ handler ) ; } self :: $ hookName ( $ handler , $ index === 0 ) ; } } }
Reinstall hooks' handlers.

@param array $handlers
Reinstall hooks handlers .