CoreFiles by mySites.guru
ExtensionOutputCheckerHandler.php37 lines, 763 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
27e1503d9823d897a27cec60094abba8
sha1
fa50e334b0b6b07763d51fe421ab4af9e5dee6c0
sha256
da1e3cfbe6f4f761f773c8656a154cfb6d98ffbb01d1533f6e7a8c18c9b37602
<?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2019 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Webauthn\AuthenticationExtensions;

class ExtensionOutputCheckerHandler
{
    /**
     * @var ExtensionOutputChecker[]
     */
    private $checkers = [];

    public function add(ExtensionOutputChecker $checker): void
    {
        $this->checkers[] = $checker;
    }

    /**
     * @throws ExtensionOutputError
     */
    public function check(AuthenticationExtensionsClientOutputs $extensions): void
    {
        foreach ($this->checkers as $checker) {
            $checker->check($extensions);
        }
    }
}

The same content is in 131 releases, Joomla 4.0.0-beta to 4.4.14. See them all, or every version of this file.