CoreFiles by mySites.guru
AjaxInitCreate.php45 lines, 1,158 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
0b88302651514d8ec11bc93b2fcdeb83
sha1
853fc4f66bd136f3001fa3846ed2f71e07c1601d
sha256
5a02b14f10f695fd6728aaf6024992f4f54531de9df720d829d32d19b83213f6
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Event\Plugin\System\Webauthn;

use Joomla\CMS\Event\AbstractImmutableEvent;
use Joomla\CMS\Event\Result\ResultAware;
use Joomla\CMS\Event\Result\ResultAwareInterface;
use Joomla\CMS\Event\Result\ResultTypeObjectAware;
use Webauthn\PublicKeyCredentialCreationOptions;

/**
 * Concrete event class for the onAjaxWebauthnInitcreate event
 *
 * @since  4.2.0
 */
class AjaxInitCreate extends AbstractImmutableEvent implements ResultAwareInterface
{
    use ResultAware;
    use ResultTypeObjectAware;

    /**
     * Constructor
     *
     * @param   string  $name       Event name
     * @param   array   $arguments  Event arguments
     *
     * @since 4.2.0
     */
    public function __construct(string $name, array $arguments = [])
    {
        parent::__construct($name, $arguments);

        $this->resultAcceptableClasses = [
            \stdClass::class,
            PublicKeyCredentialCreationOptions::class
        ];
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.