1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +02:00
Files
php-flarum/src/Core/Users/Events/UserEmailChangeWasRequested.php
Toby Zerner a74b40fe47 Massive refactor
- Use contextual namespaces within Flarum\Core
- Clean up and docblock everything
- Refactor Activity/Notification blueprint stuff
- Refactor Formatter stuff
- Refactor Search stuff
- Upgrade to JSON-API 1.0
- Removed “addedPosts” and “removedPosts” relationships from discussion
API. This was used for adding/removing event posts after renaming a
discussion etc. Instead we should make an additional request to get all
new posts

Todo:
- Fix Extenders and extensions
- Get rid of repository interfaces
- Fix other bugs I’ve inevitably introduced
2015-07-04 12:24:48 +09:30

31 lines
598 B
PHP

<?php namespace Flarum\Core\Users\Events;
use Flarum\Core\Users\User;
class UserEmailChangeWasRequested
{
/**
* The user who requested the email change.
*
* @var User
*/
public $user;
/**
* The email they requested to change to.
*
* @var string
*/
public $email;
/**
* @param User $user The user who requested the email change.
* @param string $email The email they requested to change to.
*/
public function __construct(User $user, $email)
{
$this->user = $user;
$this->email = $email;
}
}