-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
322 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Event\User; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* Class for User reset event. | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
abstract class AbstractResetEvent extends UserEvent | ||
{ | ||
/** | ||
* The argument names, in order expected by legacy plugins. | ||
* | ||
* @var array | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
* @deprecated __DEPLOY_VERSION__ will be removed in 6.0 | ||
*/ | ||
protected $legacyArgumentsOrder = ['subject']; | ||
|
||
/** | ||
* Setter for the subject argument. | ||
* | ||
* @param object $value The value to set | ||
* | ||
* @return object | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
protected function onSetSubject(object $value): object | ||
{ | ||
return $value; | ||
} | ||
|
||
/** | ||
* Getter for the user. | ||
* | ||
* @return object | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function getUser(): object | ||
{ | ||
return $this->arguments['subject']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Event\User; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* Class for User reset event. | ||
* Example: | ||
* new AfterResetCompleteEvent('onEventName', ['subject' => $user]); | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
class AfterResetCompleteEvent extends AbstractResetEvent | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Event\User; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* Class for User reset event. | ||
* Example: | ||
* new AfterResetRequestEvent('onEventName', ['subject' => $user]); | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
class AfterResetRequestEvent extends AbstractResetEvent | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Event\User; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* Class for User reset event. | ||
* Example: | ||
* new BeforeResetCompleteEvent('onEventName', ['subject' => $user]); | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
class BeforeResetCompleteEvent extends AbstractResetEvent | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Event\User; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* Class for User reset event. | ||
* Example: | ||
* new BeforeResetRequestEvent('onEventName', ['subject' => $user]); | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
class BeforeResetRequestEvent extends AbstractResetEvent | ||
{ | ||
} |
Oops, something went wrong.