[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Event/Plugin/System/Webauthn/ -> AjaxInitCreate.php (source)

   1  <?php
   2  
   3  /**
   4   * Joomla! Content Management System
   5   *
   6   * @copyright  (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
   7   * @license    General Public License version 2 or later; see LICENSE
   8   */
   9  
  10  namespace Joomla\CMS\Event\Plugin\System\Webauthn;
  11  
  12  use Joomla\CMS\Event\AbstractImmutableEvent;
  13  use Joomla\CMS\Event\Result\ResultAware;
  14  use Joomla\CMS\Event\Result\ResultAwareInterface;
  15  use Joomla\CMS\Event\Result\ResultTypeObjectAware;
  16  use Webauthn\PublicKeyCredentialCreationOptions;
  17  
  18  // phpcs:disable PSR1.Files.SideEffects
  19  \defined('_JEXEC') or die;
  20  // phpcs:enable PSR1.Files.SideEffects
  21  
  22  /**
  23   * Concrete event class for the onAjaxWebauthnInitcreate event
  24   *
  25   * @since  4.2.0
  26   */
  27  class AjaxInitCreate extends AbstractImmutableEvent implements ResultAwareInterface
  28  {
  29      use ResultAware;
  30      use ResultTypeObjectAware;
  31  
  32      /**
  33       * Constructor
  34       *
  35       * @param   string  $name       Event name
  36       * @param   array   $arguments  Event arguments
  37       *
  38       * @since 4.2.0
  39       */
  40      public function __construct(string $name, array $arguments = [])
  41      {
  42          parent::__construct($name, $arguments);
  43  
  44          $this->resultAcceptableClasses = [
  45              \stdClass::class,
  46              PublicKeyCredentialCreationOptions::class
  47          ];
  48      }
  49  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer