Skip to content

Commit 76900de

Browse files
committed
Merge remote-tracking branch 'upstream/4.2-dev' into j4/plugins/checkfiles
2 parents c443470 + 2f45696 commit 76900de

File tree

1 file changed

+44
-45
lines changed

1 file changed

+44
-45
lines changed

plugins/system/webauthn/src/Extension/Webauthn.php

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,35 @@
4747
*/
4848
final class Webauthn extends CMSPlugin implements SubscriberInterface
4949
{
50-
use CoreEventAware;
51-
52-
/**
53-
* Autoload the language files
54-
*
55-
* @var boolean
56-
* @since __DEPLOY_VERSION__
57-
*/
58-
protected $autoloadLanguage = true;
50+
// Add WebAuthn buttons
51+
use AdditionalLoginButtons;
52+
53+
// AJAX request handlers
54+
use AjaxHandler;
55+
use AjaxHandlerInitCreate;
56+
use AjaxHandlerCreate;
57+
use AjaxHandlerSaveLabel;
58+
use AjaxHandlerDelete;
59+
use AjaxHandlerChallenge;
60+
use AjaxHandlerLogin;
61+
62+
// Utility methods for setting the events' return values
63+
use EventReturnAware;
64+
use CoreEventAware;
65+
66+
// Custom user profile fields
67+
use UserProfileFields;
68+
69+
// Handle user profile deletion
70+
use UserDeletion;
71+
72+
/**
73+
* Autoload the language files
74+
*
75+
* @var boolean
76+
* @since __DEPLOY_VERSION__
77+
*/
78+
protected $autoloadLanguage = true;
5979

6080
/**
6181
* Should I try to detect and register legacy event listeners?
@@ -75,42 +95,21 @@ final class Webauthn extends CMSPlugin implements SubscriberInterface
7595
*/
7696
protected $authenticationHelper;
7797

78-
// AJAX request handlers
79-
use AjaxHandler;
80-
use AjaxHandlerInitCreate;
81-
use AjaxHandlerCreate;
82-
use AjaxHandlerSaveLabel;
83-
use AjaxHandlerDelete;
84-
use AjaxHandlerChallenge;
85-
use AjaxHandlerLogin;
86-
87-
// Custom user profile fields
88-
use UserProfileFields;
89-
90-
// Handle user profile deletion
91-
use UserDeletion;
92-
93-
// Add WebAuthn buttons
94-
use AdditionalLoginButtons;
95-
96-
// Utility methods for setting the events' return values
97-
use EventReturnAware;
98-
99-
/**
100-
* Constructor. Loads the language files as well.
101-
*
102-
* @param DispatcherInterface $subject The object to observe
103-
* @param array $config An optional associative array of configuration
104-
* settings. Recognized key values include 'name',
105-
* 'group', 'params', 'language (this list is not meant
106-
* to be comprehensive).
107-
* @param Authentication|null $authHelper The WebAuthn helper object
108-
*
109-
* @since 4.0.0
110-
*/
111-
public function __construct(&$subject, array $config = [], Authentication $authHelper = null)
112-
{
113-
parent::__construct($subject, $config);
98+
/**
99+
* Constructor. Loads the language files as well.
100+
*
101+
* @param DispatcherInterface $subject The object to observe
102+
* @param array $config An optional associative array of configuration
103+
* settings. Recognized key values include 'name',
104+
* 'group', 'params', 'language (this list is not meant
105+
* to be comprehensive).
106+
* @param Authentication|null $authHelper The WebAuthn helper object
107+
*
108+
* @since 4.0.0
109+
*/
110+
public function __construct(&$subject, array $config = [], Authentication $authHelper = null)
111+
{
112+
parent::__construct($subject, $config);
114113

115114
/**
116115
* Note: Do NOT try to load the language in the constructor. This is called before Joomla initializes the

0 commit comments

Comments
 (0)