Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More events #2025

Merged
merged 5 commits into from
Aug 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions app/Bus/Events/System/SystemCheckedForUpdatesEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\System;

/**
* This is the system checked for updates event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class SystemCheckedForUpdatesEvent implements SystemEventInterface
{
//
}
24 changes: 24 additions & 0 deletions app/Bus/Events/System/SystemEventInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\System;

use CachetHQ\Cachet\Bus\Events\EventInterface;

/**
* This is the system event interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface SystemEventInterface extends EventInterface
{
//
}
22 changes: 22 additions & 0 deletions app/Bus/Events/System/SystemWasInstalledEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\System;

/**
* This is the system was installed event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class SystemWasInstalledEvent implements SystemEventInterface
{
//
}
22 changes: 22 additions & 0 deletions app/Bus/Events/System/SystemWasResetEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\System;

/**
* This is the system was reset event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class SystemWasResetEvent implements SystemEventInterface
{
//
}
22 changes: 22 additions & 0 deletions app/Bus/Events/System/SystemWasUpdatedEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\System;

/**
* This is the system was updated event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class SystemWasUpdatedEvent implements SystemEventInterface
{
//
}
41 changes: 41 additions & 0 deletions app/Bus/Events/User/UserDisabledTwoAuthEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\User;

use CachetHQ\Cachet\Models\User;

/**
* This is the user disabled two auth event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserDisabledTwoAuthEvent implements UserEventInterface
{
/**
* The user that disabled two auth.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;

/**
* Create a new user disabled two auth event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}
41 changes: 41 additions & 0 deletions app/Bus/Events/User/UserEnabledTwoAuthEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\User;

use CachetHQ\Cachet\Models\User;

/**
* This is the user enabled two auth event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserEnabledTwoAuthEvent implements UserEventInterface
{
/**
* The user that enabled two auth.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;

/**
* Create a new user enabled two auth event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}
41 changes: 41 additions & 0 deletions app/Bus/Events/User/UserFailedTwoAuthEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\User;

use CachetHQ\Cachet\Models\User;

/**
* This is the user failed two auth event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserFailedTwoAuthEvent implements UserEventInterface
{
/**
* The user that failed two auth.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;

/**
* Create a new user failed two auth event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}
41 changes: 41 additions & 0 deletions app/Bus/Events/User/UserLoggedInEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\User;

use CachetHQ\Cachet\Models\User;

/**
* This is the user logged in event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserLoggedInEvent implements UserEventInterface
{
/**
* The user that logged in.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;

/**
* Create a new user logged in event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}
41 changes: 41 additions & 0 deletions app/Bus/Events/User/UserLoggedOutEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\User;

use CachetHQ\Cachet\Models\User;

/**
* This is the user logged out event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserLoggedOutEvent implements UserEventInterface
{
/**
* The user that logged out.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;

/**
* Create a new user logged out event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}
41 changes: 41 additions & 0 deletions app/Bus/Events/User/UserPassedTwoAuthEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Events\User;

use CachetHQ\Cachet\Models\User;

/**
* This is the user passed two auth event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserPassedTwoAuthEvent implements UserEventInterface
{
/**
* The user that passed two auth.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;

/**
* Create a new user passed two auth event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}
Loading