summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-23 23:59:50 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-23 23:59:52 +0100
commit9bf76d2bad08b2e8c8e6bab9f3e514515fb89058 (patch)
tree7b552ca61e16414eb375c3f90765dabd9f9e9efd /lib/public
parentd9e0efbf72e1f57abfbfffd3e547ba171e867d78 (diff)
downloadnextcloud-server-9bf76d2bad08b2e8c8e6bab9f3e514515fb89058.tar.gz
nextcloud-server-9bf76d2bad08b2e8c8e6bab9f3e514515fb89058.zip
Streamline user creation and deletion events
CreateUserEvent was the only one that didn't matched the naming scheme of BeforePASTTENSEEvent and PASTTENSEEvent. The event wasn't used at all so this just removes it again as there is BeforeUserCreatedEvent that is also available since 18. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/User/Events/CreateUserEvent.php65
1 files changed, 0 insertions, 65 deletions
diff --git a/lib/public/User/Events/CreateUserEvent.php b/lib/public/User/Events/CreateUserEvent.php
deleted file mode 100644
index e5c5f8af026..00000000000
--- a/lib/public/User/Events/CreateUserEvent.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-/**
- * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @author Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-namespace OCP\User\Events;
-
-use OCP\EventDispatcher\Event;
-
-/**
- * @since 18.0.0
- */
-class CreateUserEvent extends Event {
-
- /** @var string */
- private $uid;
-
- /** @var string */
- private $password;
-
- /**
- * @since 18.0.0
- */
- public function __construct(string $uid,
- string $password) {
- parent::__construct();
- $this->uid = $uid;
- $this->password = $password;
- }
-
- /**
- * @since 18.0.0
- */
- public function getUid(): string {
- return $this->uid;
- }
-
- /**
- * @since 18.0.0
- */
- public function getPassword(): string {
- return $this->password;
- }
-}