Skip to content

Commit a547e10

Browse files
authored
[6.0] Event Deprecation code comments (#47337)
* [6.0] Event Deprecation code comments * 7.0
1 parent bb562cf commit a547e10

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

libraries/src/Application/EventAware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function registerEvent($event, callable $handler)
7272
*
7373
* This is a legacy method, implementing old-style (Joomla! 3.x) plugin calls. It's best to go directly through the
7474
* Dispatcher and handle the returned EventInterface object instead of going through this method. This method is
75-
* deprecated and will be removed in Joomla! 5.x.
75+
* deprecated and will be removed in Joomla! 7.0.
7676
*
7777
* This method will only return the 'result' argument of the event
7878
*

libraries/src/Application/EventAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getDispatcher();
4242
*
4343
* This is a legacy method, implementing old-style (Joomla! 3.x) plugin calls. It's best to go directly through the
4444
* Dispatcher and handle the returned EventInterface object instead of going through this method. This method is
45-
* deprecated and will be removed in Joomla! 5.x.
45+
* deprecated and will be removed in Joomla! 7.0.
4646
*
4747
* This method will only return the 'result' argument of the event
4848
*

libraries/src/Plugin/CMSPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ abstract class CMSPlugin implements DispatcherAwareInterface, PluginInterface, L
9595
* Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While
9696
* this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are
9797
* advised to implement your plugins using proper Listeners, methods accepting an AbstractEvent as their sole
98-
* parameter, for best performance. Also bear in mind that Joomla! 5.x onwards will only allow proper listeners,
98+
* parameter, for best performance. Also bear in mind that Joomla! 7.0 onwards will only allow proper listeners,
9999
* removing support for legacy Listeners.
100100
*
101101
* @var boolean
@@ -403,7 +403,7 @@ function (AbstractEvent $event) use ($methodName) {
403403

404404
/**
405405
* Registers a proper event listener, i.e. a method which accepts an AbstractEvent as its sole argument. This is the
406-
* preferred way to implement plugins in Joomla! 4.x and will be the only possible method with Joomla! 5.x onwards.
406+
* preferred way to implement plugins in Joomla! 4.x and will be the only possible method with Joomla! 7.0 onwards.
407407
*
408408
* @param string $methodName The method name to register
409409
*

plugins/multifactorauth/email/src/Extension/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Email extends CMSPlugin implements SubscriberInterface
7171
* Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While
7272
* this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are
7373
* advised to implement your plugins using proper Listeners, methods accepting an AbstractEvent as their sole
74-
* parameter, for best performance. Also bear in mind that Joomla! 5.x onwards will only allow proper listeners,
74+
* parameter, for best performance. Also bear in mind that Joomla! 7.0 onwards will only allow proper listeners,
7575
* removing support for legacy Listeners.
7676
*
7777
* @var boolean

plugins/multifactorauth/fixed/src/Extension/Fixed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Fixed extends CMSPlugin implements SubscriberInterface
6363
* Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While
6464
* this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are
6565
* advised to implement your plugins using proper Listeners, methods accepting an AbstractEvent as their sole
66-
* parameter, for best performance. Also bear in mind that Joomla! 5.x onwards will only allow proper listeners,
66+
* parameter, for best performance. Also bear in mind that Joomla! 7.0 onwards will only allow proper listeners,
6767
* removing support for legacy Listeners.
6868
*
6969
* @var boolean

plugins/multifactorauth/totp/src/Extension/Totp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Totp extends CMSPlugin implements SubscriberInterface
6262
* Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While
6363
* this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are
6464
* advised to implement your plugins using proper Listeners, methods accepting an AbstractEvent as their sole
65-
* parameter, for best performance. Also bear in mind that Joomla! 5.x onwards will only allow proper listeners,
65+
* parameter, for best performance. Also bear in mind that Joomla! 7.0 onwards will only allow proper listeners,
6666
* removing support for legacy Listeners.
6767
*
6868
* @var boolean

plugins/multifactorauth/yubikey/src/Extension/Yubikey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Yubikey extends CMSPlugin implements SubscriberInterface
6161
* Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While
6262
* this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are
6363
* advised to implement your plugins using proper Listeners, methods accepting an AbstractEvent as their sole
64-
* parameter, for best performance. Also bear in mind that Joomla! 5.x onwards will only allow proper listeners,
64+
* parameter, for best performance. Also bear in mind that Joomla! 7.0 onwards will only allow proper listeners,
6565
* removing support for legacy Listeners.
6666
*
6767
* @var boolean

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ final class Webauthn extends CMSPlugin implements SubscriberInterface
6969
* Should I try to detect and register legacy event listeners, i.e. methods which accept unwrapped arguments? While
7070
* this maintains a great degree of backwards compatibility to Joomla! 3.x-style plugins it is much slower. You are
7171
* advised to implement your plugins using proper Listeners, methods accepting an AbstractEvent as their sole
72-
* parameter, for best performance. Also bear in mind that Joomla! 5.x onwards will only allow proper listeners,
72+
* parameter, for best performance. Also bear in mind that Joomla! 7.0 onwards will only allow proper listeners,
7373
* removing support for legacy Listeners.
7474
*
7575
* @var boolean

0 commit comments

Comments
 (0)