Compare commits

...

191 Commits
v2.4.0 ... 3.x

Author SHA1 Message Date
James Brooks
7e9f4ce32f Fix docs 2026-02-25 15:42:51 +00:00
James Brooks
207a6d5a7c Bump filament/filament 2025-12-02 13:10:11 +00:00
James Brooks
babd6a5945 Bump dependencies 2025-08-19 07:35:44 +01:00
James Brooks
2d68ba19a9 Merge pull request #4581 from cachethq/dependabot/composer/php-dependencies-ecd1105b4e 2025-08-14 13:47:08 +01:00
dependabot[bot]
a3a779ea8a Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.11.5 to 1.12.0
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.11.5...v1.12.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-14 07:58:20 +00:00
James Brooks
38274652bb Merge pull request #4580 from cachethq/dependabot/composer/php-dependencies-4b0ac7ff78 2025-08-04 10:53:45 +01:00
dependabot[bot]
d392728a7d Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.11.4 to 1.11.5
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.11.4...v1.11.5)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.11.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 09:49:46 +00:00
James Brooks
9f2d98a9f4 Merge pull request #4577 from cachethq/dependabot/composer/php-dependencies-d1729dd818 2025-07-23 14:19:32 +01:00
dependabot[bot]
5046884dc2 Bump the php-dependencies group with 2 updates
Bumps the php-dependencies group with 2 updates: [laravel/nightwatch](https://github.com/laravel/nightwatch) and [laravel/sanctum](https://github.com/laravel/sanctum).


Updates `laravel/nightwatch` from 1.11.3 to 1.11.4
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.11.3...v1.11.4)

Updates `laravel/sanctum` from 4.1.2 to 4.2.0
- [Release notes](https://github.com/laravel/sanctum/releases)
- [Changelog](https://github.com/laravel/sanctum/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sanctum/compare/v4.1.2...v4.2.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.11.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
- dependency-name: laravel/sanctum
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 07:02:12 +00:00
James Brooks
c056b11524 Merge pull request #4576 from cachethq/dependabot/composer/livewire/livewire-3.6.4 2025-07-17 21:52:41 +01:00
dependabot[bot]
593c4a9e43 Bump livewire/livewire from 3.5.19 to 3.6.4
Bumps [livewire/livewire](https://github.com/livewire/livewire) from 3.5.19 to 3.6.4.
- [Release notes](https://github.com/livewire/livewire/releases)
- [Commits](https://github.com/livewire/livewire/compare/v3.5.19...v3.6.4)

---
updated-dependencies:
- dependency-name: livewire/livewire
  dependency-version: 3.6.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 20:42:31 +00:00
James Brooks
fee62bcb3b Merge pull request #4575 from cachethq/dependabot/composer/php-dependencies-6c140debb6 2025-07-17 08:37:07 +01:00
dependabot[bot]
d6fb55a4d8 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.10.6 to 1.11.3
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.10.6...v1.11.3)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.11.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 07:36:31 +00:00
James Brooks
3326b561a8 Merge pull request #4572 from cachethq/dependabot/composer/php-dependencies-0071e5202d 2025-07-11 08:40:42 +01:00
dependabot[bot]
6baf287e20 Bump laravel/pint from 1.23.0 to 1.24.0 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.23.0 to 1.24.0
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-version: 1.24.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-11 07:26:23 +00:00
James Brooks
f5c60c476f Merge pull request #4570 from cachethq/dependabot/composer/php-dependencies-11ed1c67d0 2025-07-09 08:45:01 +01:00
dependabot[bot]
4c5573b6c0 Bump laravel/sanctum from 4.1.1 to 4.1.2 in the php-dependencies group
---
updated-dependencies:
- dependency-name: laravel/sanctum
  dependency-version: 4.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 07:10:33 +00:00
James Brooks
5bc280f4a2 Merge pull request #4569 from cachethq/dependabot/composer/php-dependencies-d56638d2c1 2025-07-08 09:18:54 +01:00
dependabot[bot]
f42ff814b9 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.10.5 to 1.10.6
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.10.5...v1.10.6)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.10.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-08 07:52:15 +00:00
James Brooks
d5a687a2ff Merge pull request #4568 from cachethq/dependabot/composer/php-dependencies-32b2defa87 2025-07-07 10:00:24 +01:00
dependabot[bot]
d212005ddc Bump the php-dependencies group with 2 updates
Bumps the php-dependencies group with 2 updates: [laravel/nightwatch](https://github.com/laravel/nightwatch) and [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/nightwatch` from 1.10.3 to 1.10.5
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.10.3...v1.10.5)

Updates `laravel/pint` from 1.22.1 to 1.23.0
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.22.1...v1.23.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.10.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
- dependency-name: laravel/pint
  dependency-version: 1.23.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-07 08:46:41 +00:00
James Brooks
c456c663f0 Merge pull request #4566 from cachethq/dependabot/composer/php-dependencies-ff00fb3b05 2025-07-02 08:48:59 +01:00
dependabot[bot]
7569f5bbf7 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.10.2 to 1.10.3
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.10.2...v1.10.3)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.10.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 07:48:21 +00:00
James Brooks
c896e23126 Merge pull request #4565 from cachethq/dependabot/composer/php-dependencies-adb38c243b 2025-07-01 12:15:53 +01:00
dependabot[bot]
fd0bb2ad75 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.10.1 to 1.10.2
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.10.1...v1.10.2)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.10.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-01 09:39:56 +00:00
James Brooks
eb2b47d69a Merge pull request #4564 from cachethq/dependabot/composer/php-dependencies-396adc6383 2025-06-30 11:40:11 +01:00
dependabot[bot]
8d3ef53d8b Bump laravel/nightwatch in the php-dependencies group
---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.10.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-30 08:58:27 +00:00
James Brooks
f2da773549 Merge pull request #4563 from cachethq/dependabot/composer/php-dependencies-b8b6bd3618 2025-06-27 09:02:38 +01:00
dependabot[bot]
aabb4b8557 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.8.4 to 1.9.0
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-27 07:52:32 +00:00
James Brooks
9a07f0ba21 Merge pull request #4561 from cachethq/dependabot/composer/php-dependencies-f9492d8cc7
Bump laravel/nightwatch from 1.7.4 to 1.8.4 in the php-dependencies group
2025-06-25 10:01:00 +01:00
dependabot[bot]
b18e5c9571 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.7.4 to 1.8.4
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.7.4...v1.8.4)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.8.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 07:32:09 +00:00
James Brooks
aaae03440d Merge pull request #4560 from cachethq/dependabot/composer/php-dependencies-f3a44a0f7b 2025-06-19 09:01:53 +01:00
dependabot[bot]
93a9f8a253 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.7.3 to 1.7.4
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.7.3...v1.7.4)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.7.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-19 07:36:32 +00:00
James Brooks
c1b12e5c47 Merge pull request #4558 from cachethq/dependabot/composer/php-dependencies-174e9a77c3 2025-06-18 09:01:57 +01:00
dependabot[bot]
36aff48121 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.7.2 to 1.7.3
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.7.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 07:36:50 +00:00
James Brooks
720b9952ae Merge pull request #4557 from PolNavarro/fix-missing-service-providers 2025-06-17 20:14:27 +01:00
Pol
58be81bd9a Fix login Method Not Allowed error by registering missing service providers
The dashboard login was failing with "Method Not Allowed" error because
Cachet's service providers were not properly registered in Laravel 11's
bootstrap/providers.php file. This caused Filament authentication routes
to not be loaded, resulting in only GET routes being available for login.

This commit adds the missing CachetCoreServiceProvider and
CachetDashboardServiceProvider to the providers array, which resolves
the login functionality and ensures all Filament routes are properly
registered.

Fixes #4533
2025-06-17 20:38:31 +02:00
James Brooks
a8456116cd Merge pull request #4556 from cachethq/dependabot/composer/php-dependencies-87b83d3a3d 2025-06-17 11:45:01 +01:00
dependabot[bot]
da3d9e3688 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.6.0 to 1.7.2
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.6.0...v1.7.2)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.7.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-17 07:23:54 +00:00
James Brooks
4fcd3bc78b Merge pull request #4554 from cachethq/dependabot/composer/php-dependencies-6a45c5dd75 2025-06-16 08:19:54 +01:00
dependabot[bot]
d22d5f529a Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.5.1 to 1.6.0
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 07:10:00 +00:00
James Brooks
dea20e5ffb Merge pull request #4553 from cachethq/dependabot/composer/php-dependencies-6129dc52a8 2025-06-06 09:01:35 +01:00
dependabot[bot]
2e3fc293be Bump laravel/pail from 1.2.2 to 1.2.3 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pail](https://github.com/laravel/pail).


Updates `laravel/pail` from 1.2.2 to 1.2.3
- [Release notes](https://github.com/laravel/pail/releases)
- [Changelog](https://github.com/laravel/pail/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pail/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: laravel/pail
  dependency-version: 1.2.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 07:40:10 +00:00
James Brooks
6bf8a58a83 Merge pull request #4551 from cachethq/dependabot/composer/php-dependencies-676d7f34fe 2025-05-21 11:01:30 +01:00
dependabot[bot]
8453501d72 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.5.0 to 1.5.1
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 07:15:25 +00:00
StyleCI Bot
5e6e01f017 Apply fixes from StyleCI 2025-05-13 10:01:27 +00:00
James Brooks
586a8c1b37 Fix config issue 2025-05-13 11:01:18 +01:00
StyleCI Bot
92ad41e4a1 Apply fixes from StyleCI 2025-05-13 09:37:59 +00:00
James Brooks
0ee1e3c43a Add locales 2025-05-13 10:37:38 +01:00
James Brooks
4b798155b2 Merge pull request #4546 from cachethq/dependabot/composer/php-dependencies-6d7712af2c 2025-05-09 09:31:54 +01:00
dependabot[bot]
007e6e369a Bump laravel/pint from 1.22.0 to 1.22.1 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.22.0 to 1.22.1
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.22.0...v1.22.1)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-version: 1.22.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 07:29:48 +00:00
StyleCI Bot
717c22b3b3 Apply fixes from StyleCI 2025-05-08 11:55:30 +00:00
James Brooks
5de867b2c5 Update cachet config 2025-05-08 12:55:10 +01:00
James Brooks
1c34a7208f Add trusted proxies support 2025-05-08 12:53:31 +01:00
James Brooks
ccd1b736d7 Update Nightwatch 2025-05-07 07:59:26 +01:00
James Brooks
ed9f3929e0 Merge pull request #4543 from cachethq/dependabot/composer/league/commonmark-2.7.0 2025-05-06 07:27:26 +01:00
dependabot[bot]
5a1ca0950b Bump league/commonmark from 2.6.2 to 2.7.0
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.6.2 to 2.7.0.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.7/CHANGELOG.md)
- [Commits](https://github.com/thephpleague/commonmark/compare/2.6.2...2.7.0)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-version: 2.7.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-06 02:01:10 +00:00
James Brooks
127df0b80d Merge pull request #4541 from cachethq/dependabot/composer/php-dependencies-e5d80a27a2 2025-04-30 09:18:08 +01:00
dependabot[bot]
d2a985e11b Bump laravel/sanctum from 4.1.0 to 4.1.1 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/sanctum](https://github.com/laravel/sanctum).


Updates `laravel/sanctum` from 4.1.0 to 4.1.1
- [Release notes](https://github.com/laravel/sanctum/releases)
- [Changelog](https://github.com/laravel/sanctum/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sanctum/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: laravel/sanctum
  dependency-version: 4.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-30 07:59:57 +00:00
James Brooks
c1afec675d Merge pull request #4539 from cachethq/dependabot/composer/php-dependencies-4805395b27 2025-04-28 09:43:10 +01:00
dependabot[bot]
667775f202 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.3.0 to 1.4.0
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 07:42:09 +00:00
James Brooks
e9d31a5062 Merge pull request #4537 from cachethq/dependabot/composer/php-dependencies-cc745e6d3c 2025-04-24 08:48:15 +01:00
dependabot[bot]
4e7bf5b023 Bump the php-dependencies group across 1 directory with 2 updates
Bumps the php-dependencies group with 2 updates in the / directory: [laravel/nightwatch](https://github.com/laravel/nightwatch) and [laravel/sanctum](https://github.com/laravel/sanctum).


Updates `laravel/nightwatch` from 1.2.1 to 1.3.0
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.2.1...v1.3.0)

Updates `laravel/sanctum` from 4.0.8 to 4.1.0
- [Release notes](https://github.com/laravel/sanctum/releases)
- [Changelog](https://github.com/laravel/sanctum/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sanctum/compare/v4.0.8...v4.1.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
- dependency-name: laravel/sanctum
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-24 07:39:36 +00:00
James Brooks
7acec4785c Merge pull request #4534 from cachethq/dependabot/composer/php-dependencies-246820b7a5 2025-04-16 09:22:05 +01:00
dependabot[bot]
b2697747d2 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.1.2 to 1.2.1
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.1.2...v1.2.1)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-version: 1.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 07:40:01 +00:00
James Brooks
cafde72b76 Merge pull request #4531 from cachethq/dependabot/composer/php-dependencies-bc9a0ba0d5
Bump laravel/pint from 1.21.2 to 1.22.0 in the php-dependencies group
2025-04-09 08:21:18 +01:00
dependabot[bot]
4bf2598bf3 Bump laravel/pint from 1.21.2 to 1.22.0 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.21.2 to 1.22.0
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.21.2...v1.22.0)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-version: 1.22.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-09 07:16:01 +00:00
James Brooks
0f55f23e06 Merge pull request #4528 from cachethq/dependabot/composer/php-dependencies-684fd06380
Bump laravel/nightwatch from 1.1.1 to 1.1.2 in the php-dependencies group
2025-03-31 10:45:05 +01:00
dependabot[bot]
f6e20ca613 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.1.1 to 1.1.2
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.1.1...v1.1.2)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 07:01:34 +00:00
James Brooks
688a12e20b Merge pull request #4527 from cachethq/dependabot/composer/php-dependencies-f38ab0104d 2025-03-28 07:23:40 +00:00
dependabot[bot]
d5bf53c6cc Bump guzzlehttp/guzzle from 7.9.2 to 7.9.3 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [guzzlehttp/guzzle](https://github.com/guzzle/guzzle).


Updates `guzzlehttp/guzzle` from 7.9.2 to 7.9.3
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/7.9/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.9.2...7.9.3)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-28 07:10:54 +00:00
James Brooks
f8627539b5 Merge pull request #4525 from cachethq/dependabot/composer/php-dependencies-edfca984db
Bump laravel/nightwatch from 1.1.0 to 1.1.1 in the php-dependencies group
2025-03-20 07:59:15 +00:00
dependabot[bot]
03fe62565b Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.1.0 to 1.1.1
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-20 07:23:31 +00:00
James Brooks
7ab27a9bff Merge pull request #4520 from cachethq/dependabot/composer/php-dependencies-8e704aacdc 2025-03-18 08:03:13 +00:00
dependabot[bot]
0e00d09433 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.0.7 to 1.1.0
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.0.7...v1.1.0)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 07:54:07 +00:00
James Brooks
81796b27f0 Merge pull request #4519 from cachethq/dependabot/composer/php-dependencies-959160b77b
Bump laravel/pint from 1.21.1 to 1.21.2 in the php-dependencies group
2025-03-17 08:02:49 +00:00
dependabot[bot]
da4bdf4291 Bump laravel/pint from 1.21.1 to 1.21.2 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.21.1 to 1.21.2
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.21.1...v1.21.2)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 07:23:41 +00:00
James Brooks
2d969d7eb5 Merge pull request #4514 from cachethq/dependabot/composer/php-dependencies-a81900f75f 2025-03-11 07:20:14 +00:00
dependabot[bot]
5d98c2348e Bump laravel/pint from 1.21.0 to 1.21.1 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.21.0 to 1.21.1
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.21.0...v1.21.1)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 07:09:22 +00:00
James Brooks
d0a47f96e7 Update .env.example 2025-03-10 14:01:18 +00:00
James Brooks
e2678fe3b9 Merge pull request #4512 from tnylea/3.x
Updating post-create-project-cmd in composer.json
2025-03-07 17:55:43 +00:00
Tony Lea
58068c6f3c Updating post-create-project-cmd in composer.json
This commit will add the correct steps to the post-create-project-cmd to make this project work with the new Laravel installer.
2025-03-07 12:14:33 -05:00
James Brooks
cfdd202489 Merge pull request #4507 from cachethq/dependabot/composer/laravel/framework-11.44.1 2025-03-06 07:06:03 +00:00
dependabot[bot]
4700f76e26 Bump laravel/framework from 11.44.0 to 11.44.1
Bumps [laravel/framework](https://github.com/laravel/framework) from 11.44.0 to 11.44.1.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/12.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.44.0...v11.44.1)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-05 23:47:12 +00:00
James Brooks
580ef3fac7 Merge pull request #4505 from cachethq/dependabot/composer/php-dependencies-2dca59260e
Bump laravel/nightwatch from 1.0.5 to 1.0.7 in the php-dependencies group
2025-03-03 08:14:19 +00:00
dependabot[bot]
e567c37cb2 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.0.5 to 1.0.7
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.0.5...v1.0.7)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 07:52:14 +00:00
James Brooks
f60baaaeb3 Merge pull request #4503 from cachethq/dependabot/composer/php-dependencies-fecceb13cd 2025-02-28 07:48:02 +00:00
dependabot[bot]
002a3d0341 Bump laravel/nightwatch in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/nightwatch](https://github.com/laravel/nightwatch).


Updates `laravel/nightwatch` from 1.0.4 to 1.0.5
- [Release notes](https://github.com/laravel/nightwatch/releases)
- [Changelog](https://github.com/laravel/nightwatch/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/nightwatch/compare/v1.0.4...v1.0.5)

---
updated-dependencies:
- dependency-name: laravel/nightwatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-28 07:41:09 +00:00
James Brooks
6afa72edbb Update cachethq/core 2025-02-27 09:26:07 +00:00
James Brooks
8d74ba1fb3 Add laravel/nightwatch 2025-02-27 09:25:50 +00:00
James Brooks
ff01e419f2 Update license, trademark file and tagline 2025-02-24 08:37:42 +00:00
James Brooks
2a690404b8 Update sponsors 2025-02-21 09:10:18 +00:00
James Brooks
e7fae333ac Update deps 2025-02-21 09:09:45 +00:00
James Brooks
f63fa0bfc7 Merge pull request #4497 from cachethq/dependabot/composer/php-dependencies-0b930608c7
Bump laravel/framework from 11.42.1 to 11.43.2 in the php-dependencies group
2025-02-20 08:28:55 +00:00
dependabot[bot]
3aaeac54d0 Bump laravel/framework in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.42.1 to 11.43.2
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.42.1...v11.43.2)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-20 07:43:27 +00:00
James Brooks
11c9113a70 Merge pull request #4496 from cachethq/dependabot/composer/php-dependencies-1b06d1dc42 2025-02-18 08:20:16 +00:00
dependabot[bot]
a88027b434 Bump laravel/pint from 1.20.0 to 1.21.0 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.20.0 to 1.21.0
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.20.0...v1.21.0)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-18 07:34:34 +00:00
James Brooks
b922ba5a40 Update deps 2025-02-13 08:36:40 +00:00
James Brooks
bde1f2bc0f Merge pull request #4493 from cachethq/dependabot/composer/php-dependencies-b71a27bd54
Bump laravel/framework from 11.41.3 to 11.42.1 in the php-dependencies group across 1 directory
2025-02-13 08:36:01 +00:00
dependabot[bot]
e0e3a2bb7d Bump laravel/framework in the php-dependencies group across 1 directory
Bumps the php-dependencies group with 1 update in the / directory: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.41.3 to 11.42.1
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.41.3...v11.42.1)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-13 07:03:42 +00:00
James Brooks
4ebeba1159 Merge pull request #4480 from cachethq/dependabot/composer/php-dependencies-a7b8f39707 2025-01-31 08:08:25 +00:00
dependabot[bot]
8d4a5d9963 Bump laravel/framework in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.41.0 to 11.41.3
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.41.0...v11.41.3)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-31 07:51:53 +00:00
James Brooks
e69ddaf7e9 Merge pull request #4478 from cachethq/dependabot/composer/twig/twig-3.19.0
Bump twig/twig from 3.18.0 to 3.19.0
2025-01-30 11:45:52 +00:00
dependabot[bot]
ee1204c841 Bump twig/twig from 3.18.0 to 3.19.0
Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.18.0 to 3.19.0.
- [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG)
- [Commits](https://github.com/twigphp/Twig/compare/v3.18.0...v3.19.0)

---
updated-dependencies:
- dependency-name: twig/twig
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-30 11:31:27 +00:00
James Brooks
f75781ab78 Merge pull request #4476 from cachethq/dependabot/composer/php-dependencies-d23014a10a 2025-01-29 07:16:44 +00:00
dependabot[bot]
1e729a00ec Bump the php-dependencies group with 4 updates
Bumps the php-dependencies group with 4 updates: [laravel/framework](https://github.com/laravel/framework), [laravel/sanctum](https://github.com/laravel/sanctum), [laravel/tinker](https://github.com/laravel/tinker) and [laravel/pail](https://github.com/laravel/pail).


Updates `laravel/framework` from 11.40.0 to 11.41.0
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.40.0...v11.41.0)

Updates `laravel/sanctum` from 4.0.7 to 4.0.8
- [Release notes](https://github.com/laravel/sanctum/releases)
- [Changelog](https://github.com/laravel/sanctum/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sanctum/compare/v4.0.7...v4.0.8)

Updates `laravel/tinker` from 2.10.0 to 2.10.1
- [Release notes](https://github.com/laravel/tinker/releases)
- [Changelog](https://github.com/laravel/tinker/blob/2.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/tinker/compare/v2.10.0...v2.10.1)

Updates `laravel/pail` from 1.2.1 to 1.2.2
- [Release notes](https://github.com/laravel/pail/releases)
- [Changelog](https://github.com/laravel/pail/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pail/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
- dependency-name: laravel/sanctum
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
- dependency-name: laravel/tinker
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
- dependency-name: laravel/pail
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-29 07:07:57 +00:00
James Brooks
a6d79fe15e Update deps 2025-01-27 10:30:40 +00:00
James Brooks
cc3a971ff8 Merge pull request #4473 from cachethq/dependabot/composer/php-dependencies-2984cf9023 2025-01-27 07:52:28 +00:00
dependabot[bot]
a382d061e5 Bump laravel/framework in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.39.1 to 11.40.0
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.39.1...v11.40.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 07:16:19 +00:00
James Brooks
22ddcaaa93 Merge pull request #4470 from cachethq/dependabot/composer/php-dependencies-200a71e816 2025-01-23 07:36:43 +00:00
dependabot[bot]
1f14005ea7 Bump laravel/framework in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.39.0 to 11.39.1
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.39.0...v11.39.1)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 07:09:13 +00:00
James Brooks
b4fe9882ef Merge pull request #4469 from cachethq/dependabot/composer/php-dependencies-35ff716651
Bump laravel/framework from 11.38.2 to 11.39.0 in the php-dependencies group
2025-01-22 09:16:07 +00:00
dependabot[bot]
5a298fbe16 Bump laravel/framework in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.38.2 to 11.39.0
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.38.2...v11.39.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-22 07:16:24 +00:00
James Brooks
aa033c4c1a Update deps 2025-01-21 08:15:43 +00:00
StyleCI Bot
8ce5e05030 Apply fixes from StyleCI 2025-01-18 11:50:45 +00:00
James Brooks
05b21a8703 Use the Cachet core model 2025-01-18 11:50:30 +00:00
James Brooks
d84e8e949d Update Composer dependencies 2025-01-18 11:45:09 +00:00
James Brooks
bc43ef6d73 Merge pull request #4457 from cachethq/publish-laravel-tables
Create cache and sessions table
2025-01-18 11:42:28 +00:00
StyleCI Bot
883d2e7329 Apply fixes from StyleCI 2025-01-18 11:42:04 +00:00
James Brooks
4f46337d7d Create cache and sessions table 2025-01-18 11:41:45 +00:00
James Brooks
bea9b79a70 Merge pull request #4454 from islemci/patch-1
fix (probably) unwanted markdown error
2025-01-16 17:14:44 +00:00
musti
e770832a0d fix (probably) unwanted markdown error 2025-01-16 18:08:08 +03:00
James Brooks
b534f1c77b Update User model 2025-01-16 09:26:08 +00:00
James Brooks
35f0408a83 Update dependencies 2025-01-16 09:26:07 +00:00
James Brooks
92233e354e Merge pull request #4453 from cachethq/dependabot/composer/php-dependencies-3e8c69c16a 2025-01-15 07:29:09 +00:00
dependabot[bot]
f38555174a Bump the php-dependencies group with 3 updates
Bumps the php-dependencies group with 3 updates: [laravel/framework](https://github.com/laravel/framework), [laravel/pint](https://github.com/laravel/pint) and [laravel/sail](https://github.com/laravel/sail).


Updates `laravel/framework` from 11.37.0 to 11.38.2
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.37.0...v11.38.2)

Updates `laravel/pint` from 1.19.0 to 1.20.0
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.19.0...v1.20.0)

Updates `laravel/sail` from 1.39.1 to 1.40.0
- [Release notes](https://github.com/laravel/sail/releases)
- [Changelog](https://github.com/laravel/sail/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sail/compare/v1.39.1...v1.40.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
- dependency-name: laravel/sail
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-15 07:25:40 +00:00
James Brooks
5162f80a98 Remove session table migraton 2025-01-08 21:31:49 +00:00
James Brooks
ef2b864bcc Remove cache table migraton 2025-01-08 21:29:54 +00:00
StyleCI Bot
3913dfebe3 Apply fixes from StyleCI 2025-01-08 21:21:33 +00:00
James Brooks
39f148d672 Publish the cache and sessions table migrations 2025-01-08 21:21:16 +00:00
James Brooks
87734388c8 Updates 2025-01-07 15:45:03 +00:00
James Brooks
d5721ea578 Default the app.name to Cachet 2025-01-03 14:08:49 +00:00
James Brooks
8d34d43778 Merge pull request #4448 from cachethq/dependabot/composer/php-dependencies-fa03233279
Bump laravel/framework from 11.36.1 to 11.37.0 in the php-dependencies group
2025-01-03 08:19:08 +00:00
dependabot[bot]
de1670d08a Bump laravel/framework in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/framework](https://github.com/laravel/framework).


Updates `laravel/framework` from 11.36.1 to 11.37.0
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.36.1...v11.37.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-03 07:38:46 +00:00
James Brooks
8af273215b Merge pull request #4447 from cachethq/dependabot/composer/php-dependencies-f9c8acef9c 2024-12-31 07:36:51 +00:00
dependabot[bot]
86a72ea382 Bump laravel/pint from 1.18.3 to 1.19.0 in the php-dependencies group
Bumps the php-dependencies group with 1 update: [laravel/pint](https://github.com/laravel/pint).


Updates `laravel/pint` from 1.18.3 to 1.19.0
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.18.3...v1.19.0)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-31 07:13:37 +00:00
James Brooks
9cf1ff5f17 Merge pull request #4443 from cachethq/dependabot/composer/league/commonmark-2.6.0
Bump league/commonmark from 2.5.3 to 2.6.0
2024-12-23 15:58:29 +00:00
dependabot[bot]
2dc2ecbfcc Bump league/commonmark from 2.5.3 to 2.6.0
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.5.3 to 2.6.0.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.6/CHANGELOG.md)
- [Commits](https://github.com/thephpleague/commonmark/compare/2.5.3...2.6.0)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-23 15:58:11 +00:00
James Brooks
6f12f9403e Merge pull request #4442 from cachethq/dependabot/composer/php-dependencies-4e81b0465b
Bump the php-dependencies group with 2 updates
2024-12-23 15:57:58 +00:00
James Brooks
de96a9ce28 Remove unused package files 2024-12-23 15:57:22 +00:00
dependabot[bot]
eea007a9d3 Bump the php-dependencies group with 2 updates
Bumps the php-dependencies group with 2 updates: [laravel/framework](https://github.com/laravel/framework) and [laravel/sanctum](https://github.com/laravel/sanctum).


Updates `laravel/framework` from 11.34.2 to 11.36.1
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v11.34.2...v11.36.1)

Updates `laravel/sanctum` from 4.0.5 to 4.0.7
- [Release notes](https://github.com/laravel/sanctum/releases)
- [Changelog](https://github.com/laravel/sanctum/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sanctum/compare/v4.0.5...v4.0.7)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: php-dependencies
- dependency-name: laravel/sanctum
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: php-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-23 15:56:48 +00:00
James Brooks
962685aa12 Rename DEPENDABOT.yml to dependabot.yml 2024-12-23 15:55:23 +00:00
James Brooks
a6e9dd1c3e Create TRADEMARKS.md 2024-12-23 08:19:48 +00:00
James Brooks
e4780b3278 Create DEPENDABOT.yml 2024-12-23 08:18:02 +00:00
James Brooks
4d9fe2f9c9 Update deps 2024-12-02 06:56:57 +00:00
James Brooks
00c661b0ba Update default CACHET_PATH 2024-11-10 09:55:42 +00:00
James Brooks
a3ca218f97 Add sponsors to README.md 2024-10-26 14:19:47 +01:00
James Brooks
5fd59c5b05 Cachet doesn't need assets 2024-10-26 14:04:34 +01:00
James Brooks
72f3592f58 Update frontend deps 2024-10-26 14:01:55 +01:00
James Brooks
a2213c9d2c Composer updates 2024-10-26 14:01:45 +01:00
James Brooks
9909bc665d Update dependencies 2024-10-26 13:59:16 +01:00
James Brooks
5acc978d60 Update readme 2024-10-09 21:11:58 +01:00
James Brooks
96a22a9c34 Update dependencies 2024-10-09 21:06:49 +01:00
James Brooks
ffbed0c296 Merge pull request #4384 from jasonmccreary/shift-115222
Laravel 11.x Shift
2024-10-09 21:05:44 +01:00
James Brooks
5423df61cf Updates 2024-10-09 21:05:21 +01:00
StyleCI Bot
ee23e952a6 Apply fixes from StyleCI 2024-10-09 20:01:40 +00:00
James Brooks
6624a761a8 Publish all config files 2024-10-09 21:01:21 +01:00
Jason McCreary
d488e70a66 composer update 2024-04-05 14:43:01 -04:00
Shift
dd1c361dac Shift cleanup 2024-04-05 18:36:54 +00:00
Shift
58c7d37fe3 Remove createApplication method 2024-04-05 18:36:53 +00:00
Shift
e872b479e9 Mark base controller as abstract 2024-04-05 18:36:52 +00:00
Shift
5daad9303d Convert $casts property to method 2024-04-05 18:36:51 +00:00
Shift
6295ded597 Bump Composer dependencies 2024-04-05 18:36:50 +00:00
Shift
3960e52135 Re-register routes 2024-04-05 18:36:50 +00:00
Shift
7a07548748 Consolidate service providers 2024-04-05 18:36:48 +00:00
Shift
952cada198 Re-register HTTP middleware 2024-04-05 18:36:48 +00:00
Shift
322a11dced Default new bootstrap/app.php 2024-04-05 18:36:48 +00:00
Shift
6111bc0433 Set new ENV variables 2024-04-05 18:36:47 +00:00
Shift
8c86dc350f Streamline config files 2024-04-05 18:36:46 +00:00
Shift
f31c514d38 Shift core files 2024-04-05 18:36:37 +00:00
Shift
7ab855f2ff Remove default app files 2024-04-05 18:36:36 +00:00
Shift
7c2a6ffe92 Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
2024-04-05 18:36:26 +00:00
James Brooks
9655626ee2 Fix dependencies for PHP 8.1 2024-04-03 09:09:20 +01:00
James Brooks
cbc4695e79 Fix core dep 2024-02-13 17:23:46 +00:00
StyleCI Bot
f43026bbd0 Apply fixes from StyleCI 2024-02-13 17:22:26 +00:00
James Brooks
c01ea14981 wip 2024-02-13 17:22:05 +00:00
James Brooks
441a09c54a Merge pull request #4371 from ashleyshenton/implement-filament-user
[3.x] Implement the filament user contract
2024-01-29 16:15:19 +00:00
Ashley Shenton
090ce6c474 fix: implement the filament user contract to allow access to the dashboard
fix test email in README.md
2024-01-29 14:57:56 +00:00
James Brooks
b5fde23075 wip 2024-01-22 08:36:05 +00:00
James Brooks
b39c466907 wip 2024-01-19 20:41:30 +00:00
James Brooks
b42e5b9726 wip 2024-01-19 20:39:44 +00:00
James Brooks
a85a36df58 wip 2024-01-19 20:37:10 +00:00
James Brooks
69497078e9 wip 2024-01-19 20:08:40 +00:00
StyleCI Bot
cf4260e5f9 Apply fixes from StyleCI 2024-01-19 20:03:40 +00:00
James Brooks
cf674850dd Laravel 10 + Cachet Core 2024-01-19 20:03:17 +00:00
James Brooks
8b565ab7f0 Merge pull request #4353 from kroerig/patch-3
Update notifications.php
2023-12-01 13:06:44 +00:00
James Brooks
3300157be1 Merge pull request #4352 from kroerig/patch-2
Update forms.php
2023-12-01 13:06:32 +00:00
James Brooks
91e4d8aba7 Compile 2023-11-08 08:30:09 +11:00
James Brooks
19fcfd4420 Revert broken change to setup 2023-11-08 08:29:07 +11:00
kroerig
c73d5e0799 Update notifications.php 2023-09-15 14:56:10 +02:00
kroerig
2d0ef4ebd5 Update forms.php
Add missing translations.
2023-09-15 14:52:52 +02:00
1245 changed files with 9707 additions and 123207 deletions

View File

@@ -1,15 +1,18 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[{*.json,*.yml}]
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
[docker-compose.yml]
indent_size = 4

View File

@@ -1,44 +1,72 @@
APP_ENV=production
APP_DEBUG=false
APP_URL=http://localhost
APP_TIMEZONE=UTC
APP_NAME=Cachet
APP_ENV=local
APP_KEY=
DEBUGBAR_ENABLED=false
APP_DEBUG=true
APP_TIMEZONE=UTC
APP_URL=http://cachet.test
DB_DRIVER=mysql
DB_HOST=localhost
DB_UNIX_SOCKET=null
DB_DATABASE=cachet
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_PORT=null
DB_PREFIX=null
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
CACHET_BEACON=true
CACHET_EMOJI=false
CACHET_AUTO_TWITTER=true
BCRYPT_ROUNDS=12
MAIL_DRIVER=log
MAIL_HOST=null
MAIL_PORT=null
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
CACHE_STORE=database
CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ADDRESS=null
MAIL_NAME=null
MAIL_ENCRYPTION=tls
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
REDIS_HOST=null
REDIS_DATABASE=null
REDIS_PORT=null
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
GITHUB_TOKEN=null
VITE_APP_NAME="${APP_NAME}"
NEXMO_KEY=null
NEXMO_SECRET=null
NEXMO_SMS_FROM=Cachet
CACHET_BEACON=false
CACHET_EMOJI=false
CACHET_AUTO_TWITTER=true
CACHET_PATH=/
CACHET_TRUSTED_PROXIES=""
TRUSTED_PROXIES=
NIGHTWATCH_ENABLED=false

29
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "07:00"
groups:
php-dependencies:
update-types:
- "minor"
- "patch"
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: monday
groups:
js-dependencies:
update-types:
- "minor"
- "patch"
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary

18
.gitignore vendored
View File

@@ -1,12 +1,22 @@
/.phpunit.cache
/node_modules
/public/build
/public/hot
/public/storage
/public/css/filament
/public/js/filament
/public/vendor/cachethq/cachet
/storage/*.key
/vendor
/.idea
/.vagrant
.env
.env.backup
.env.production
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
.env
package-lock.json
yarn-error.log
/.fleet
/.idea
/.vscode

View File

@@ -1,38 +0,0 @@
language: php
dist: trusty
sudo: false
branches:
except:
- l10n_2.3
- l10n_2.4
before_install:
- cp .env.example .env
install:
- travis_retry composer install --no-interaction --no-suggest
jobs:
include:
# - stage: Security check
# script:
# - phpenv config-rm xdebug.ini || true
# - wget https://get.sensiolabs.org/security-checker.phar
# - php security-checker.phar security:check ./composer.lock
# php: 7.1
- stage: Unit tests
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.1
- stage: Unit tests
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.2
- stage: Unit tests
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.3

12
LICENSE
View File

@@ -1,12 +0,0 @@
Copyright (c) 2015-2019 Alt Three Services Limited.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the Cachet nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

50
LICENSE.md Normal file
View File

@@ -0,0 +1,50 @@
# Cachet license
This License from Alt Three Services Limited. (“Cachet”) governs your use of the accompanying Software. By using the Software, you accept the terms of this License. The Cachet software is copyrighted by Alt Three Services Limited.
## Permissions
Subject to the following conditions, you are permitted to:
- Use the Software in your commercial or non-commercial projects.
- Modify the Software to suit your needs.
- Bundle the Software with your own projects.
- Submit modifications of the Software to Cachet.
## Conditions
In exchange for these permissions, you agree:
- Not to remove any copyright or other notices from the Software.
- Not to make the Software available under a license that supersedes or negates the effect of this License.
- Not to distribute the Software or modifications of the Software as a standalone product, but only as part of another application.
- To include a verbatim copy of this License in any distribution of the Software.
- To comply with Cachet's [trademark policy](https://github.com/cachethq/core/blob/main/TRADEMARKS.md).
### Termination
Your license to use the Software will terminate automatically if you breach any terms of this License or initiate a copyright, trade secret, or patent claim against Cachet, any of its affiliates, or any user of the Software (including as modified by you).
### Disclaimer of Warranties
The Software is provided "AS IS," without any warranties. This includes any implied warranties of merchantability, fitness for a particular purpose, or non-infringement. You must pass this disclaimer on whenever you distribute the Software or derivative works.
### Limitation of Liability
Cachet is not liable for any damages related to the Software or this License, including direct, indirect, special, or incidental damages, to the fullest extent permitted by law. You must pass this limitation of liability on whenever you distribute the Software or derivative works.
### Governing Law
This License is governed by the laws of Delaware, and the parties consent to exclusive jurisdiction in Delaware courts. The parties waive all defenses of lack of personal jurisdiction and forum non-conveniens.
### Entire Agreement / Assignment
This License is the entire agreement between the parties, and supersedes any and all prior agreements, understandings or communications, written or oral, between the parties relating to the subject matter hereof. This License may be assigned by Cachet without your prior consent.
### Reservation of Rights
Alt Three Services Limited reserves all rights not expressly granted to you in this License. Alt Three Services Limited owns all right, title, and interest in and to the Software.
## Alternative License
For alternative licensing, please contact support@cachethq.io.

View File

@@ -5,32 +5,17 @@
</picture>
</p>
Cachet, the open-source status page system.
Cachet, the open-source self-hosted status page system.
## Cachet 3.x Announcement
We are shifting our attention and resources to Cachet 3.x and will no longer be supporting the 2.x version.
For more information on the Cachet rebuild and our plans for 3.x, you can read the announcement [here](https://github.com/CachetHQ/Cachet/discussions/4342).
## Features
- List your service components
- Report incidents
- Customise the look of your status page
- Markdown support for incident messages
- A powerful JSON API
- Metrics
- Multi-lingual
- Subscriber notifications via email
- Two factor authentication
## Requirements
- PHP 7.1.3 7.3
- HTTP server with PHP support (e.g.: Apache, Nginx, Caddy)
- PHP 8.2 or later
- [Composer](https://getcomposer.org)
- A supported database: MySQL, PostgreSQL or SQLite
- A supported database: MariaDB, MySQL, PostgreSQL or SQLite
## Installation, Upgrades and Documentation
@@ -38,18 +23,27 @@ You can find documentation at [https://docs.cachethq.io](https://docs.cachethq.i
Here are some useful quick links:
- [Installing Cachet](https://docs.cachethq.io/installation/)
- [Getting started with Docker](https://docs.cachethq.io/installation/docker)
- [Installing Cachet](https://docs.cachethq.io/v3.x/installation)
### Demo
To test out the demo, you can log in to the [Cachet dashboard](https://demo.cachethq.io/dashboard) with the following credentials:
To test out the v3 demo, you can log in to the [Cachet dashboard](https://v3.cachethq.io/dashboard) with the following credentials:
- **Username:** `test` or `test@example.com`
- **Email:** `test@test.com`
- **Password:** `test123`
> **Note**
> The demo will automatically reset every 30 minutes.
>
## Sponsors
<p align="center">
<a href="https://jump24.co.uk"><img width="100px" src="https://github.com/jumptwentyfour.png" alt="Jump24"></a>
<a href="https://dreamtilt.com.au"><img width="100px" src="https://github.com/dreamtilt.png" alt="Dreamtilt"></a>
<a href="https://xyphen-it.nl"><img width="100px" src="https://github.com/xyphen-it.png" alt="Xyphen-IT"></a>
<a href="https://coderabbit.ai/"><img width="100px" src="https://github.com/coderabbitai.png" alt="Code Rabbit"></a>
<a href="https://scramble.dedoc.co/"><img width="100px" src="https://github.com/dedoc.png" alt="de:doc"></a>
</p>
## Security Vulnerabilities

66
TRADEMARKS.md Normal file
View File

@@ -0,0 +1,66 @@
# Cachet Trademark Guidelines
This trademark policy was prepared to help you understand how to use the Cachet trademarks, service marks and logos.
While the copyright to our open source software is licensed under the Cachet license, our trademarks appearing in or on the open source software are the exclusive property of Cachet Inc. This means that our open source license does not include a license to use our trademarks.
Because we make some of our code available to download and modify, proper use of our trademarks is essential to inform people whether or not Cachet stands behind a product or service. When using Cachet trademarks, you must comply with these Cachet Trademark Guidelines.
This policy is intended to explain how to use our trademarks in a way that is consistent with background law and community expectations. This policy covers:
1. Our word trademarks and service marks: Cachet
2. Our logos: The Cachet logos
This policy encompasses all trademarks and service marks, whether they are registered or not.
## General guidelines
Whenever you use one of our marks, you must always do so in a way that does not mislead anyone about what they are getting and from whom.
Do not use the Cachet marks in any way that could mistakenly imply that Cachet has reviewed, approved or guaranteed your goods or services. You also cannot use our logo on your website in a way that suggests that your website is an official website or that we endorse your website. You can, though, say you like the Cachet software, that you use Cachet, that the analytics are powered by Cachet or that you participate in the Cachet community.
Do not use the "Cachet" prefix in a way that could mistakenly imply that your product is related to Cachet. For example, an analytics product that uses Cachet should not use the name "cachetanalytics".
You may not use or register our marks or variations of them as part of your trademark, business, product, service, app, domain name, social media account or business indicator. You may not use our marks as a part of an advertising campaign. You may not display Cachet trademarks more prominently than your product, service or company name. You may not use Cachet trademarks on merchandise for sale (e.g., selling t-shirts, mugs, etc).
Trademark law does not allow your use of names or trademarks that are too similar to ours. You therefore may not use an obvious variation of any of our marks or any phonetic equivalent, foreign language equivalent, takeoff, or abbreviation for a similar or compatible product or service.
## Acceptable uses
You can use the Cachet name to truthfully and accurately refer to or identify Cachet and its products and services in the following instances:
- To refer to Cachet and its products and services in news articles and other content without alteration
- To discuss Cachet and its products in a fair and honest manner that does not suggest sponsorship or endorsement by or affiliation with Cachet
- To refer to and/or to link to the products and services hosted on Cachets servers and website
- To indicate if your product, service or solution integrates, or is interoperable or compatible, with Cachet, for example, “we offer a simple integration with Cachet”, provided that doing so does not create a likelihood of confusion as to the origin of such product, service, or solution
- You may use our word marks as part of a public subdomain solely for the purpose of serving as the URL for your self-managed Cachet instance, for example, cachethq.iopanyname.com
## Prohibited uses
Unless you have express written permission from Cachet, or your use is permitted pursuant to the acceptable uses set forth above, the use of Cachet trademarks is strictly prohibited. Here is a short, non-exhaustive list of the kinds of uses that are not permitted without Cachets express written permission but that Cachet may consider granting you the right to do should you request permission:
- Use of Cachet trademarks in connection with the provision of a public website that makes Cachet software available for installation and use on a server (rather than directing users to the official Cachet site)
- Use of Cachet trademarks in connection with versions of Cachet products made publicly available or made available in the cloud on a managed service provider, resale or other commercial basis
- Use of Cachet trademarks in connection with Cachet product bundled with other software
In the above cases:
- You must follow the terms of the open source license for Cachet software products and code
- You must remove all of our logos from it and choose your branding, logos and trademarks that denote your unique identity to clearly signal to users that there is no affiliation with or endorsement by Cachet
- You must not use any Cachet trademark in connection with the user-facing name, branding or marketing materials of your project
- You may use word marks, but not our logos, in truthful statements that describe the relationship between your software and ours, for example, “this software is derived from the source code of the Cachet software”, as long as you also include a statement that your project is not officially associated with Cachet or its products
- Cachet reserves the right in its sole discretion to (i) terminate, revoke, modify, or otherwise change permission to use the trademarks at any time and; (ii) object to any use or misuse of the trademarks in any jurisdiction worldwide. All changes to these guidelines are effective immediately when posted and your continued use of the trademarks following the posting of revised guidelines signifies your acceptance of such revision.
## To request the use of the trademarks
Anyone wishing to use any of Cachets trademarks in a manner other than the acceptable uses listed above, including but not limited to marketing, promotion or advertising, or on software derivative of Cachet software, must obtain Cachets express, written permission in advance.
To request the use of the trademarks in a manner or for a purpose not expressly permitted in these guidelines, including use for any purpose of the logos, please email [hello@cachethq.io](mailto:hello@cachethq.io) to discuss. If you need clarification on whether your use qualifies, please ask.
## To report misuse
If you want to report misuse of a Cachet trademark, please email [hello@cachethq.io](mailto:hello@cachethq.io).
Last updated: November 25 2024
These guidelines are based on the Model Trademark Guidelines, available at http://www.modeltrademarkguidelines.org., used under a Creative Commons Attribution 3.0 Unported license: https://creativecommons.org/licenses/by/3.0/deed.en_US

View File

@@ -1 +0,0 @@
2.4.0-dev

View File

@@ -1,128 +0,0 @@
<?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\Commands\Component;
/**
* This is the create component command class.
*
* @author James Brooks <james@alt-three.com>
*/
final class CreateComponentCommand
{
/**
* The component name.
*
* @var string
*/
public $name;
/**
* The component description.
*
* @var string
*/
public $description;
/**
* The component status.
*
* @var int
*/
public $status;
/**
* The component link.
*
* @var string
*/
public $link;
/**
* The component order.
*
* @var int
*/
public $order;
/**
* The component group.
*
* @var int
*/
public $group_id;
/**
* Is the component enabled?
*
* @var bool
*/
public $enabled;
/**
* JSON meta data for the component.
*
* @var array|null
*/
public $meta;
/**
* Tags string.
*
* @var string
*/
public $tags;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'required|string',
'description' => 'nullable|string',
'status' => 'required|int|min:0|max:4',
'link' => 'nullable|url',
'order' => 'nullable|int',
'group_id' => 'nullable|int',
'enabled' => 'nullable|bool',
'meta' => 'nullable|array',
'tags' => 'nullable|string',
];
/**
* Create a new add component command instance.
*
* @param string $name
* @param string $description
* @param int $status
* @param string $link
* @param int $order
* @param int $group_id
* @param bool $enabled
* @param array|null $meta
* @param string|null $tags
*
* @return void
*/
public function __construct($name, $description, $status, $link, $order, $group_id, $enabled, $meta, $tags = null)
{
$this->name = $name;
$this->description = $description;
$this->status = (int) $status;
$this->link = $link;
$this->order = $order;
$this->group_id = $group_id;
$this->enabled = $enabled;
$this->meta = $meta;
$this->tags = $tags;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Component;
use CachetHQ\Cachet\Models\Component;
final class RemoveComponentCommand
{
/**
* The component to remove.
*
* @var \CachetHQ\Cachet\Models\Component
*/
public $component;
/**
* Create a new remove component command instance.
*
* @param \CachetHQ\Cachet\Models\Component $component
*
* @return void
*/
public function __construct(Component $component)
{
$this->component = $component;
}
}

View File

@@ -1,144 +0,0 @@
<?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\Commands\Component;
use CachetHQ\Cachet\Models\Component;
final class UpdateComponentCommand
{
/**
* The component to update.
*
* @var \CachetHQ\Cachet\Models\Component
*/
public $component;
/**
* The component name.
*
* @var string|null
*/
public $name;
/**
* The component description.
*
* @var string|null
*/
public $description;
/**
* The component status.
*
* @var int|null
*/
public $status;
/**
* The component link.
*
* @var string|null
*/
public $link;
/**
* The component order.
*
* @var int|null
*/
public $order;
/**
* The component group.
*
* @var int|null
*/
public $group_id;
/**
* Is the component enabled?
*
* @var bool|null
*/
public $enabled;
/**
* JSON meta data for the component.
*
* @var array|null
*/
public $meta;
/**
* The tags.
*
* @var string|null
*/
public $tags;
/**
* If this is true, we won't notify subscribers of the change.
*
* @var bool
*/
public $silent;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'nullable|string',
'description' => 'nullable|string',
'status' => 'nullable|int|min:0|max:4',
'link' => 'nullable|url',
'order' => 'nullable|int',
'group_id' => 'nullable|int',
'enabled' => 'nullable|bool',
'meta' => 'nullable|array',
'silent' => 'nullable|bool',
];
/**
* Create a new update component command instance.
*
* @param \CachetHQ\Cachet\Models\Component $component
* @param string|null $name
* @param string|null $description
* @param int|null $status
* @param string|null $link
* @param int|null $order
* @param int|null $group_id
* @param bool|null $enabled
* @param array|null $meta
* @param string|null $tags
* @param bool $silent
*
* @return void
*/
public function __construct(Component $component, $name = null, $description = null, $status = null, $link = null, $order = null, $group_id = null, $enabled = null, $meta = null, $tags = null, $silent = null)
{
$this->component = $component;
$this->name = $name;
$this->description = $description;
$this->status = $status;
$this->link = $link;
$this->order = $order;
$this->group_id = $group_id;
$this->enabled = $enabled;
$this->meta = $meta;
$this->tags = $tags;
$this->silent = $silent;
$this->tags = $tags;
}
}

View File

@@ -1,78 +0,0 @@
<?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\Commands\ComponentGroup;
/**
* This is the create component group command.
*
* @author James Brooks <james@alt-three.com>
*/
final class CreateComponentGroupCommand
{
/**
* The component group name.
*
* @var string
*/
public $name;
/**
* The component group description.
*
* @var int
*/
public $order;
/**
* Is the component group collapsed?
*
* @var int
*/
public $collapsed;
/**
* Is the component visible to public?
*
* @var int
*/
public $visible;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'required|string',
'order' => 'required|int',
'collapsed' => 'required|int|between:0,4',
'visible' => 'required|bool',
];
/**
* Create a add component group command instance.
*
* @param string $name
* @param int $order
* @param int $collapsed
* @param int $visible
*
* @return void
*/
public function __construct($name, $order, $collapsed, $visible)
{
$this->name = $name;
$this->order = (int) $order;
$this->collapsed = $collapsed;
$this->visible = (int) $visible;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\ComponentGroup;
use CachetHQ\Cachet\Models\ComponentGroup;
final class RemoveComponentGroupCommand
{
/**
* The component group to remove.
*
* @var \CachetHQ\Cachet\Models\ComponentGroup
*/
public $group;
/**
* Create a new remove component group command instance.
*
* @param \CachetHQ\Cachet\Models\ComponentGroup $group
*
* @return void
*/
public function __construct(ComponentGroup $group)
{
$this->group = $group;
}
}

View File

@@ -1,89 +0,0 @@
<?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\Commands\ComponentGroup;
use CachetHQ\Cachet\Models\ComponentGroup;
/**
* This is the update component group command.
*
* @author James Brooks <james@alt-three.com>
*/
final class UpdateComponentGroupCommand
{
/**
* The component group.
*
* @var \CachetHQ\Cachet\Models\ComponentGroup
*/
public $group;
/**
* The component group name.
*
* @var string
*/
public $name;
/**
* The component group description.
*
* @var int
*/
public $order;
/**
* Is the component group collapsed?
*
* @var int
*/
public $collapsed;
/**
* Is the component visible to public?
*
* @var int
*/
public $visible;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'nullable|string',
'order' => 'nullable|int',
'collapsed' => 'nullable|int|between:0,4',
'visible' => 'nullable|bool',
];
/**
* Create a add component group command instance.
*
* @param \CachetHQ\Cachet\Models\ComponentGroup $group
* @param string $name
* @param int $order
* @param int $collapsed
* @param int $visible
*
* @return void
*/
public function __construct(ComponentGroup $group, $name, $order, $collapsed, $visible)
{
$this->group = $group;
$this->name = $name;
$this->order = (int) $order;
$this->collapsed = $collapsed;
$this->visible = (int) $visible;
}
}

View File

@@ -1,158 +0,0 @@
<?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\Commands\Incident;
/**
* This is the create incident command.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
final class CreateIncidentCommand
{
/**
* The incident name.
*
* @var string
*/
public $name;
/**
* The incident status.
*
* @var int
*/
public $status;
/**
* The incident message.
*
* @var string
*/
public $message;
/**
* The incident visibility.
*
* @var int
*/
public $visible;
/**
* The incident component.
*
* @var int
*/
public $component_id;
/**
* The component status.
*
* @var int
*/
public $component_status;
/**
* Whether to notify about the incident or not.
*
* @var bool
*/
public $notify;
/**
* Whether to stick the incident on top.
*
* @var bool
*/
public $stickied;
/**
* The date at which the incident occurred at.
*
* @var string|null
*/
public $occurred_at;
/**
* A given incident template.
*
* @var string|null
*/
public $template;
/**
* Variables for the incident template.
*
* @var string[]|null
*/
public $template_vars;
/**
* Meta key/value pairs.
*
* @var array
*/
public $meta = [];
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'required|string',
'status' => 'required|int|min:0|max:4',
'message' => 'nullable|string',
'visible' => 'nullable|bool',
'component_id' => 'nullable|required_with:component_status|int',
'component_status' => 'nullable|required_with:component_id|int|min:0|max:4',
'notify' => 'nullable|bool',
'stickied' => 'required|bool',
'occurred_at' => 'nullable|string',
'template' => 'nullable|string',
'meta' => 'nullable|array',
];
/**
* Create a new create incident command instance.
*
* @param string $name
* @param int $status
* @param string $message
* @param int $visible
* @param int $component_id
* @param int $component_status
* @param bool $notify
* @param bool $stickied
* @param string|null $occurred_at
* @param string|null $template
* @param array $template_vars
* @param array $meta
*
* @return void
*/
public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $stickied, $occurred_at, $template, array $template_vars = [], array $meta = [])
{
$this->name = $name;
$this->status = $status;
$this->message = $message;
$this->visible = $visible;
$this->component_id = $component_id;
$this->component_status = $component_status;
$this->notify = $notify;
$this->stickied = $stickied;
$this->occurred_at = $occurred_at;
$this->template = $template;
$this->template_vars = $template_vars;
$this->meta = $meta;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Incident;
use CachetHQ\Cachet\Models\Incident;
final class RemoveIncidentCommand
{
/**
* The incident to remove.
*
* @var \CachetHQ\Cachet\Models\Incident
*/
public $incident;
/**
* Create a new remove incident command instance.
*
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return void
*/
public function __construct(Incident $incident)
{
$this->incident = $incident;
}
}

View File

@@ -1,170 +0,0 @@
<?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\Commands\Incident;
use CachetHQ\Cachet\Models\Incident;
/**
* This is the update incident command.
*
* @author James Brooks <james@alt-three.com>
* @author Joseph Cohem <joe@alt-three.com>
* @author Graham Campbell <graham@alt-three.com>
*/
final class UpdateIncidentCommand
{
/**
* The incident to update.
*
* @var \CachetHQ\Cachet\Models\Incident
*/
public $incident;
/**
* The incident name.
*
* @var string
*/
public $name;
/**
* The incident status.
*
* @var int
*/
public $status;
/**
* The incident message.
*
* @var string
*/
public $message;
/**
* The incident visibility.
*
* @var int
*/
public $visible;
/**
* The incident component.
*
* @var int
*/
public $component_id;
/**
* The component status.
*
* @var int
*/
public $component_status;
/**
* Whether to notify about the incident or not.
*
* @var bool
*/
public $notify;
/**
* Whether to stick the incident on top.
*
* @var bool
*/
public $stickied;
/**
* The timestamp that the incident occurred at.
*
* @var string|null
*/
public $occurred_at;
/**
* A given incident template.
*
* @var string|null
*/
public $template;
/**
* Variables for the incident template.
*
* @var string[]|null
*/
public $template_vars;
/**
* Meta key/value pairs.
*
* @var array
*/
public $meta = [];
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'nullable|string',
'status' => 'nullable|int|min:0|max:4',
'message' => 'nullable|string',
'visible' => 'nullable|bool',
'component_id' => 'nullable|int',
'component_status' => 'nullable|int|min:0|max:4|required_with:component_id',
'notify' => 'nullable|bool',
'stickied' => 'nullable|bool',
'occurred_at' => 'nullable|string',
'template' => 'nullable|string',
'meta' => 'nullable|array',
];
/**
* Create a new update incident command instance.
*
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param string $name
* @param int $status
* @param string $message
* @param int $visible
* @param int $component_id
* @param int $component_status
* @param bool $notify
* @param bool $stickied
* @param string|null $occurred_at
* @param string|null $template
* @param array $template_vars
* @param array $meta
*
* @return void
*/
public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $stickied, $occurred_at, $template, array $template_vars = [], array $meta = [])
{
$this->incident = $incident;
$this->name = $name;
$this->status = $status;
$this->message = $message;
$this->visible = $visible;
$this->component_id = $component_id;
$this->component_status = $component_status;
$this->notify = $notify;
$this->stickied = $stickied;
$this->occurred_at = $occurred_at;
$this->template = $template;
$this->template_vars = $template_vars;
$this->meta = $meta;
}
}

View File

@@ -1,97 +0,0 @@
<?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\Commands\IncidentUpdate;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\User;
/**
* This is the report incident update command.
*
* @author James Brooks <james@alt-three.com>
*/
final class CreateIncidentUpdateCommand
{
/**
* The incident.
*
* @var \CachetHQ\Cachet\Models\Incident
*/
public $incident;
/**
* The incident status.
*
* @var int
*/
public $status;
/**
* The incident message.
*
* @var string
*/
public $message;
/**
* The incident component.
*
* @var int
*/
public $component_id;
/**
* The component status.
*
* @var int
*/
public $component_status;
/**
* The user.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'incident' => 'required',
'status' => 'required|int|min:1|max:4',
'message' => 'required|string',
'component_id' => 'nullable|required_with:component_status|int',
'component_status' => 'nullable|required_with:component_id|int|min:0|max:4',
'user' => 'required',
];
/**
* Create a new report incident update command instance.
*
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param string $status
* @param string $message
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(Incident $incident, $status, $message, $component_id, $component_status, User $user)
{
$this->incident = $incident;
$this->status = $status;
$this->message = $message;
$this->component_id = $component_id;
$this->component_status = $component_status;
$this->user = $user;
}
}

View File

@@ -1,41 +0,0 @@
<?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\Commands\IncidentUpdate;
use CachetHQ\Cachet\Models\IncidentUpdate;
/**
* This is the remove incident update command.
*
* @author James Brooks <james@alt-three.com>
*/
final class RemoveIncidentUpdateCommand
{
/**
* The incident update to remove.
*
* @var \CachetHQ\Cachet\Models\IncidentUpdate
*/
public $incidentUpdate;
/**
* Create a new remove incident update command instance.
*
* @param \CachetHQ\Cachet\Models\IncidentUpdate $incidentUpdate
*
* @return void
*/
public function __construct(IncidentUpdate $incidentUpdate)
{
$this->incidentUpdate = $incidentUpdate;
}
}

View File

@@ -1,79 +0,0 @@
<?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\Commands\IncidentUpdate;
use CachetHQ\Cachet\Models\IncidentUpdate;
use CachetHQ\Cachet\Models\User;
/**
* This is the update incident update command.
*
* @author James Brooks <james@alt-three.com>
*/
final class UpdateIncidentUpdateCommand
{
/**
* The incident update.
*
* @var \CachetHQ\Cachet\Models\IncidentUpdate
*/
public $update;
/**
* The incident status.
*
* @var int
*/
public $status;
/**
* The incident message.
*
* @var string
*/
public $message;
/**
* The user.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'status' => 'nullable|int|min:1|max:4',
'message' => 'nullable|string',
];
/**
* Create a new update incident update command instance.
*
* @param \CachetHQ\Cachet\Models\IncidentUpdate $update
* @param string $status
* @param string $message
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(IncidentUpdate $update, $status, $message, User $user)
{
$this->update = $update;
$this->status = $status;
$this->message = $message;
$this->user = $user;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Invite;
use CachetHQ\Cachet\Models\Invite;
final class ClaimInviteCommand
{
/**
* The invite to mark as claimed.
*
* @var \CachetHQ\Cachet\Models\Invite
*/
public $invite;
/**
* Create a new claim invite command instance.
*
* @param \CachetHQ\Cachet\Models\Invite $invite
*
* @return void
*/
public function __construct(Invite $invite)
{
$this->invite = $invite;
}
}

View File

@@ -1,149 +0,0 @@
<?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\Commands\Metric;
/**
* This is the create metric command class.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
final class CreateMetricCommand
{
/**
* The metric name.
*
* @var string
*/
public $name;
/**
* The metric suffix.
*
* @var string
*/
public $suffix;
/**
* The metric description.
*
* @var string
*/
public $description;
/**
* The metric default value.
*
* @var float
*/
public $default_value;
/**
* The metric calculation type.
*
* @var int
*/
public $calc_type;
/**
* The metric display chart.
*
* @var int
*/
public $display_chart;
/**
* The metric decimal places.
*
* @var int
*/
public $places;
/**
* The view to show the metric points in.
*
* @var int
*/
public $default_view;
/**
* The threshold to buffer the metric points in.
*
* @var int
*/
public $threshold;
/**
* The order of which to place the metric in.
*
* @var int
*/
public $order;
/**
* The visibility of the metric.
*
* @var int
*/
public $visible;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'required|string',
'suffix' => 'required|string',
'description' => 'nullable|string',
'default_value' => 'required|int',
'calc_type' => 'required|int',
'display_chart' => 'nullable|int',
'places' => 'nullable|int|between:0,4',
'default_view' => 'required|int|between:0,3',
'threshold' => 'required|int',
'order' => 'nullable|int',
'visible' => 'required|int|between:0,2',
];
/**
* Create a new add metric command instance.
*
* @param string $name
* @param string $suffix
* @param string $description
* @param float $default_value
* @param int $calc_type
* @param int $display_chart
* @param int $places
* @param int $default_view
* @param int $threshold
* @param int $order
* @param int $visible
*
* @return void
*/
public function __construct($name, $suffix, $description, $default_value, $calc_type, $display_chart, $places, $default_view, $threshold, $order = 0, $visible = 1)
{
$this->name = $name;
$this->suffix = $suffix;
$this->description = $description;
$this->default_value = $default_value;
$this->calc_type = $calc_type;
$this->display_chart = $display_chart;
$this->places = $places;
$this->default_view = $default_view;
$this->threshold = $threshold;
$this->order = $order;
$this->visible = $visible;
}
}

View File

@@ -1,70 +0,0 @@
<?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\Commands\Metric;
use CachetHQ\Cachet\Models\Metric;
/**
* This is the create metric point command class.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
final class CreateMetricPointCommand
{
/**
* The metric to add.
*
* @var \CachetHQ\Cachet\Models\Metric
*/
public $metric;
/**
* The metric point value.
*
* @var int
*/
public $value;
/**
* The metric point created at.
*
* @var int
*/
public $created_at;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'value' => 'required|numeric',
'created_at' => 'nullable|int',
];
/**
* Create a new add metric point command instance.
*
* @param \CachetHQ\Cachet\Models\Metric $metric
* @param int $value
* @param int $created_at
*
* @return void
*/
public function __construct(Metric $metric, $value, $created_at)
{
$this->metric = $metric;
$this->value = $value;
$this->created_at = $created_at;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Metric;
use CachetHQ\Cachet\Models\Metric;
final class RemoveMetricCommand
{
/**
* The metric to remove.
*
* @var \CachetHQ\Cachet\Models\Metric
*/
public $metric;
/**
* Create a new remove metric command instance.
*
* @param \CachetHQ\Cachet\Models\Metric $metric
*
* @return void
*/
public function __construct(Metric $metric)
{
$this->metric = $metric;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Metric;
use CachetHQ\Cachet\Models\MetricPoint;
final class RemoveMetricPointCommand
{
/**
* The metric point to remove.
*
* @var \CachetHQ\Cachet\Models\MetricPoint
*/
public $metricPoint;
/**
* Create a new remove metric point command instance.
*
* @param \CachetHQ\Cachet\Models\MetricPoint $metricPoint
*
* @return void
*/
public function __construct(MetricPoint $metricPoint)
{
$this->metricPoint = $metricPoint;
}
}

View File

@@ -1,154 +0,0 @@
<?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\Commands\Metric;
use CachetHQ\Cachet\Models\Metric;
final class UpdateMetricCommand
{
/**
* The metric.
*
* @var \CachetHQ\Cachet\Models\Metric
*/
public $metric;
/**
* The metric name.
*
* @var string
*/
public $name;
/**
* The metric suffix.
*
* @var string
*/
public $suffix;
/**
* The metric description.
*
* @var string
*/
public $description;
/**
* The metric default value.
*
* @var float
*/
public $default_value;
/**
* The metric calculation type.
*
* @var int
*/
public $calc_type;
/**
* The metric display chart.
*
* @var int
*/
public $display_chart;
/**
* The metric decimal places.
*
* @var int
*/
public $places;
/**
* The view to show the metric points in.
*
* @var int
*/
public $default_view;
/**
* The threshold to buffer the metric points in.
*
* @var int
*/
public $threshold;
/**
* The order of which to place the metric in.
*
* @var int|null
*/
public $order;
/**
* The visibility of the metric.
*
* @var int
*/
public $visible;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'nullable|string',
'suffix' => 'nullable|string',
'description' => 'nullable|string',
'default_value' => 'nullable|numeric',
'calc_type' => 'nullable|int|in:0,1',
'display_chart' => 'nullable|int',
'places' => 'nullable|numeric|between:0,4',
'default_view' => 'nullable|numeric|between:0,4',
'threshold' => 'nullable|int',
'order' => 'nullable|int',
'visible' => 'nullable|int|between:0,2',
];
/**
* Create a new update metric command instance.
*
* @param \CachetHQ\Cachet\Models\Metric $metric
* @param string $name
* @param string $suffix
* @param string $description
* @param float $default_value
* @param int $calc_type
* @param int $display_chart
* @param int $places
* @param int $default_view
* @param int $threshold
* @param int|null $order
* @param int $visible
*
* @return void
*/
public function __construct(Metric $metric, $name, $suffix, $description, $default_value, $calc_type, $display_chart, $places, $default_view, $threshold, $order = null, $visible = null)
{
$this->metric = $metric;
$this->name = $name;
$this->suffix = $suffix;
$this->description = $description;
$this->default_value = $default_value;
$this->calc_type = $calc_type;
$this->display_chart = $display_chart;
$this->places = $places;
$this->default_view = $default_view;
$this->threshold = $threshold;
$this->order = $order;
$this->visible = $visible;
}
}

View File

@@ -1,79 +0,0 @@
<?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\Commands\Metric;
use CachetHQ\Cachet\Models\Metric;
use CachetHQ\Cachet\Models\MetricPoint;
/**
* This is the update metric point command.
*
* @author James Brooks <james@alt-three.com>
*/
final class UpdateMetricPointCommand
{
/**
* The metric point.
*
* @var \CachetHQ\Cachet\Models\MetricPoint
*/
public $point;
/**
* The metric.
*
* @var \CachetHQ\Cachet\Models\Metric
*/
public $metric;
/**
* The metric point value.
*
* @var float
*/
public $value;
/**
* The metric point created at.
*
* @var string
*/
public $created_at;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'value' => 'nullable|numeric',
'created_at' => 'nullable|string',
];
/**
* Create a new update metric point command instance.
*
* @param \CachetHQ\Cachet\Models\MetricPoint $point
* @param \CachetHQ\Cachet\Models\Metric $metric
* @param float $value
* @param string $created_at
*
* @return void
*/
public function __construct(MetricPoint $point, Metric $metric, $value, $created_at)
{
$this->point = $point;
$this->metric = $metric;
$this->value = $value;
$this->created_at = $created_at;
}
}

View File

@@ -1,108 +0,0 @@
<?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\Commands\Schedule;
/**
* This is the create schedule command.
*
* @author James Brooks <james@alt-three.com>
*/
final class CreateScheduleCommand
{
/**
* The schedule name.
*
* @var string
*/
public $name;
/**
* The schedule message.
*
* @var string
*/
public $message;
/**
* The schedule status.
*
* @var int
*/
public $status;
/**
* The schedule date.
*
* @var string
*/
public $scheduled_at;
/**
* The completed at date.
*
* @var string
*/
public $completed_at;
/**
* The components affected by the schedule.
*
* @var array
*/
public $components;
/**
* Whether to notify that the incident was reported.
*
* @var bool
*/
public $notify;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'name' => 'required|string',
'message' => 'nullable|string',
'status' => 'required|int|min:0|max:2',
'scheduled_at' => 'required|string',
'completed_at' => 'nullable|string',
'components' => 'nullable|array',
'notify' => 'nullable|bool',
];
/**
* Create a new create schedule command instance.
*
* @param string $name
* @param string $message
* @param int $status
* @param string $scheduled_at
* @param string $completed_at
* @param array $components
* @param bool $notify
*
* @return void
*/
public function __construct($name, $message, $status, $scheduled_at, $completed_at, $components, $notify)
{
$this->name = $name;
$this->message = $message;
$this->status = $status;
$this->scheduled_at = $scheduled_at;
$this->completed_at = $completed_at;
$this->components = $components;
$this->notify = $notify;
}
}

View File

@@ -1,50 +0,0 @@
<?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\Commands\Schedule;
use CachetHQ\Cachet\Models\Schedule;
/**
* This is the delete schedule command.
*
* @author James Brooks <james@alt-three.com>
*/
final class DeleteScheduleCommand
{
/**
* The schedule to delete.
*
* @var \CachetHQ\Cachet\Models\Schedule
*/
public $schedule;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'schedule' => 'required',
];
/**
* Create a new delete schedule command instance.
*
* @param \CachetHQ\Cachet\Models\Schedule $schedule
*
* @return void
*/
public function __construct(Schedule $schedule)
{
$this->schedule = $schedule;
}
}

View File

@@ -1,110 +0,0 @@
<?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\Commands\Schedule;
use CachetHQ\Cachet\Models\Schedule;
/**
* This is the update schedule command.
*
* @author James Brooks <james@alt-three.com>
*/
final class UpdateScheduleCommand
{
/**
* The schedule to update.
*
* @param \CachetHQ\Cachet\Models\Schedule
*/
public $schedule;
/**
* The schedule name.
*
* @var string
*/
public $name;
/**
* The schedule message.
*
* @var string
*/
public $message;
/**
* The schedule status.
*
* @var int
*/
public $status;
/**
* The schedule date.
*
* @var string
*/
public $scheduled_at;
/**
* The completed at date.
*
* @var string
*/
public $completed_at;
/**
* The components affected by the schedule.
*
* @var array
*/
public $components;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'schedule' => 'required',
'name' => 'nullable|string',
'message' => 'nullable|string',
'status' => 'nullable|int|min:0|max:2',
'scheduled_at' => 'nullable|string',
'completed_at' => 'nullable|string',
'components' => 'nullable|array',
];
/**
* Create a new update schedule command instance.
*
* @param \CachetHQ\Cachet\Models\Schedule $schedule
* @param string $name
* @param string $message
* @param int $status
* @param string $scheduled_at
* @param string $completed_at
* @param array $components
*
* @return void
*/
public function __construct(Schedule $schedule, $name, $message, $status, $scheduled_at, $completed_at, array $components = [])
{
$this->schedule = $schedule;
$this->name = $name;
$this->message = $message;
$this->status = $status;
$this->scheduled_at = $scheduled_at;
$this->completed_at = $completed_at;
$this->components = $components;
}
}

View File

@@ -1,66 +0,0 @@
<?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\Commands\Subscriber;
/**
* This is the subscribe subscriber command.
*
* @author James Brooks <james@alt-three.com>
*/
final class SubscribeSubscriberCommand
{
/**
* The subscriber email.
*
* @var string
*/
public $email;
/**
* The subscriber auto verification.
*
* @var bool
*/
public $verified;
/**
* The list of subscriptions to set the subscriber up with.
*
* @var array|null
*/
public $subscriptions;
/**
* The validation rules.
*
* @var array
*/
public $rules = [
'email' => 'required|email',
];
/**
* Create a new subscribe subscriber command instance.
*
* @param string $email
* @param bool $verified
* @param array|null $subscriptions
*
* @return void
*/
public function __construct($email, $verified = false, $subscriptions = null)
{
$this->email = $email;
$this->verified = $verified;
$this->subscriptions = $subscriptions;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
final class UnsubscribeSubscriberCommand
{
/**
* The subscriber to unsubscribe.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* Create a unsubscribe subscriber command instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/
public function __construct(Subscriber $subscriber)
{
$this->subscriber = $subscriber;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Subscriber;
use CachetHQ\Cachet\Models\Subscription;
final class UnsubscribeSubscriptionCommand
{
/**
* The subscription to unsubscribe.
*
* @var \CachetHQ\Cachet\Models\Subscription
*/
public $subscription;
/**
* Create a unsubscribe subscription command instance.
*
* @param \CachetHQ\Cachet\Models\Subscription $subscription
*
* @return void
*/
public function __construct(Subscription $subscription)
{
$this->subscription = $subscription;
}
}

View File

@@ -1,50 +0,0 @@
<?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\Commands\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
/**
* This is the subscribe subscriber command.
*
* @author Joseph Cohen <joe@alt-three.com>
*/
final class UpdateSubscriberSubscriptionCommand
{
/**
* The subscriber email.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* The subscriptions that we want to add.
*
* @var array|null
*/
public $subscriptions;
/**
* Create a new subscribe subscriber command instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
* @param null|array $subscriptions
*
* @return void
*/
public function __construct($subscriber, $subscriptions = null)
{
$this->subscriber = $subscriber;
$this->subscriptions = $subscriptions;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
final class VerifySubscriberCommand
{
/**
* The subscriber to verify.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* Create a verify subscriber command instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/
public function __construct(Subscriber $subscriber)
{
$this->subscriber = $subscriber;
}
}

View File

@@ -1,39 +0,0 @@
<?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\Commands\System\Config;
/**
* This is the update config command class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UpdateConfigCommand
{
/**
* This is the config key/values array.
*
* @var array
*/
public $values;
/**
* Create a new update config command instance.
*
* @param array $values
*
* @return void
*/
public function __construct($values)
{
$this->values = $values;
}
}

View File

@@ -1,77 +0,0 @@
<?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\Commands\User;
/**
* This is the create user command.
*
* @author James Brooks <james@alt-three.com>
*/
final class CreateUserCommand
{
/**
* The user username.
*
* @var string
*/
public $username;
/**
* The user password.
*
* @var string
*/
public $password;
/**
* The user email.
*
* @var string
*/
public $email;
/**
* The user level.
*
* @var int
*/
public $level;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'username' => 'required|string',
'password' => 'required|string',
'level' => 'required|int',
];
/**
* Create a new add team member command instance.
*
* @param string $username
* @param string $password
* @param string $email
* @param int $level
*
* @return void
*/
public function __construct($username, $password, $email, $level)
{
$this->username = $username;
$this->password = $password;
$this->email = $email;
$this->level = $level;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\User;
use CachetHQ\Cachet\Models\User;
final class GenerateApiTokenCommand
{
/**
* The user to generate the token.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* Create a new generate api token command instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}

View File

@@ -1,48 +0,0 @@
<?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\Commands\User;
/**
* This is the invite user command.
*
* @author James Brooks <james@alt-three.com>
*/
final class InviteUserCommand
{
/**
* The invite emails.
*
* @var string[]
*/
public $emails;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'emails.*' => 'required|email',
];
/**
* Create a new invite user command instance.
*
* @param string[] $emails
*
* @return void
*/
public function __construct(array $emails)
{
$this->emails = $emails;
}
}

View File

@@ -1,36 +0,0 @@
<?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\Commands\User;
use CachetHQ\Cachet\Models\User;
final class RemoveUserCommand
{
/**
* The user to remove.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* Create a new remove user command instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}

View File

@@ -1,73 +0,0 @@
<?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\Commands\User;
final class SignupUserCommand
{
/**
* The user username.
*
* @var string
*/
public $username;
/**
* The user password.
*
* @var string
*/
public $password;
/**
* The user email.
*
* @var string
*/
public $email;
/**
* The user level.
*
* @var int
*/
public $level;
/**
* The validation rules.
*
* @var string[]
*/
public $rules = [
'username' => 'required|string',
'password' => 'required|string',
'email' => 'required|string|email',
'level' => 'required|int',
];
/**
* Create a new signup user command instance.
*
* @param string $username
* @param string $password
* @param string $email
* @param int $level
*
* @return void
*/
public function __construct($username, $password, $email, $level)
{
$this->username = $username;
$this->password = $password;
$this->email = $email;
$this->level = $level;
}
}

View File

@@ -1,41 +0,0 @@
<?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\Commands\User;
use CachetHQ\Cachet\Models\User;
/**
* This is the welcome user command.
*
* @author James Brooks <james@alt-three.com>
*/
final class WelcomeUserCommand
{
/**
* The user.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* Create a new welcome user command instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
}

View File

@@ -1,28 +0,0 @@
<?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;
/**
* This is the action interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface ActionInterface
{
/**
* Get the event action.
*
* @return array
*/
public function getAction();
}

View File

@@ -1,24 +0,0 @@
<?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\Beacon;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the beacon event interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface BeaconEventInterface extends EventInterface
{
//
}

View File

@@ -1,30 +0,0 @@
<?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\Beacon;
/**
* This is the beacon failed to send event.
*
* @author James Brooks <james@alt-three.com>
*/
final class BeaconFailedToSendEvent implements BeaconEventInterface
{
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Beacon failed to send.';
}
}

View File

@@ -1,30 +0,0 @@
<?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\Beacon;
/**
* This is the beacon was sent event.
*
* @author James Brooks <james@alt-three.com>
*/
final class BeaconWasSentEvent implements BeaconEventInterface
{
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Beacon was sent.';
}
}

View File

@@ -1,25 +0,0 @@
<?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\Component;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the component event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface ComponentEventInterface extends EventInterface
{
//
}

View File

@@ -1,102 +0,0 @@
<?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\Component;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\User;
/**
* This is the component status was changed event.
*
* @author James Brooks <james@alt-three.com>
*/
final class ComponentStatusWasChangedEvent implements ActionInterface, ComponentEventInterface
{
/**
* The user who changed the component.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component that was changed.
*
* @var \CachetHQ\Cachet\Models\Component
*/
public $component;
/**
* The original status of the component.
*
* @var int
*/
public $original_status;
/**
* The new status of the component.
*
* @var int
*/
public $new_status;
/**
* If silent, we won't notify.
*
* @var bool
*/
public $silent;
/**
* Create a new component was updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Component $component
* @param int $original_status
* @param int $new_status
* @param bool $silent
*
* @return void
*/
public function __construct(User $user, Component $component, $original_status, $new_status, $silent)
{
$this->user = $user;
$this->component = $component;
$this->original_status = $original_status;
$this->new_status = $new_status;
$this->silent = $silent;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component status was changed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,75 +0,0 @@
<?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\Component;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\User;
/**
* This is the component was created event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class ComponentWasCreatedEvent implements ActionInterface, ComponentEventInterface
{
/**
* The user who added the component.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component that was added.
*
* @var \CachetHQ\Cachet\Models\Component
*/
public $component;
/**
* Create a new component was added event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Component $component
*
* @return void
*/
public function __construct(User $user, Component $component)
{
$this->user = $user;
$this->component = $component;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component was added.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,75 +0,0 @@
<?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\Component;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\User;
/**
* This is the component was removed event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class ComponentWasRemovedEvent implements ActionInterface, ComponentEventInterface
{
/**
* The user who removed the component.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component that was removed.
*
* @var \CachetHQ\Cachet\Models\Component
*/
public $component;
/**
* Create a new component was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Component $component
*
* @return void
*/
public function __construct(User $user, Component $component)
{
$this->user = $user;
$this->component = $component;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,76 +0,0 @@
<?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\Component;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\User;
/**
* This is the component was updated event class.
*
* @author James Brooks <james@alt-three.com>
* @author Graham Campbell <graham@alt-three.com>
*/
final class ComponentWasUpdatedEvent implements ActionInterface, ComponentEventInterface
{
/**
* The user who updated the component.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component that was updated.
*
* @var \CachetHQ\Cachet\Models\Component
*/
public $component;
/**
* Create a new component was updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Component $component
*
* @return void
*/
public function __construct(User $user, Component $component)
{
$this->user = $user;
$this->component = $component;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,25 +0,0 @@
<?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\ComponentGroup;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the component group event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface ComponentGroupEventInterface extends EventInterface
{
//
}

View File

@@ -1,75 +0,0 @@
<?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\ComponentGroup;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\ComponentGroup;
use CachetHQ\Cachet\Models\User;
/**
* This is the component group was created event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class ComponentGroupWasCreatedEvent implements ActionInterface, ComponentGroupEventInterface
{
/**
* The user who added the component group.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component group that was added.
*
* @var \CachetHQ\Cachet\Models\ComponentGroup
*/
public $group;
/**
* Create a new component group was added event instance.
*
* @param \CachetHQ\Cachet\Models\User $group
* @param \CachetHQ\Cachet\Models\ComponentGroup $group
*
* @return void
*/
public function __construct(User $user, ComponentGroup $group)
{
$this->user = $user;
$this->group = $group;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component Group was added.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\ComponentGroup;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\ComponentGroup;
use CachetHQ\Cachet\Models\User;
final class ComponentGroupWasRemovedEvent implements ActionInterface, ComponentGroupEventInterface
{
/**
* The user who removed the component group.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component group that was removed.
*
* @var \CachetHQ\Cachet\Models\ComponentGroup
*/
public $group;
/**
* Create a new component group was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\ComponentGroup $group
*
* @return void
*/
public function __construct(User $user, ComponentGroup $group)
{
$this->user = $user;
$this->group = $group;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component Group was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\ComponentGroup;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\ComponentGroup;
use CachetHQ\Cachet\Models\User;
final class ComponentGroupWasUpdatedEvent implements ActionInterface, ComponentGroupEventInterface
{
/**
* The user who updated the component group.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The component group that was updated.
*
* @var \CachetHQ\Cachet\Models\ComponentGroup
*/
public $group;
/**
* Create a new component group was updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\ComponentGroup $group
*
* @return void
*/
public function __construct(User $user, ComponentGroup $group)
{
$this->user = $user;
$this->group = $group;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Component Group was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,25 +0,0 @@
<?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\Incident;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the incident event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface IncidentEventInterface extends EventInterface
{
//
}

View File

@@ -1,79 +0,0 @@
<?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\Incident;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\User;
final class IncidentWasCreatedEvent implements ActionInterface, IncidentEventInterface
{
/**
* The user who reported the event.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The incident that has been reported.
*
* @var \CachetHQ\Cachet\Models\Incident
*/
public $incident;
/**
* Whether to notify that the incident was reported.
*
* @var bool
*/
public $notify;
/**
* Create a new incident has reported event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param bool $notify
*
* @return void
*/
public function __construct(User $user, Incident $incident, $notify = false)
{
$this->user = $user;
$this->incident = $incident;
$this->notify = $notify;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Incident was reported.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\Incident;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\User;
final class IncidentWasRemovedEvent implements ActionInterface, IncidentEventInterface
{
/**
* The user who removed the event.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The incident that has been removed.
*
* @var \CachetHQ\Cachet\Models\Incident
*/
public $incident;
/**
* Create a new incident was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return void
*/
public function __construct(User $user, Incident $incident)
{
$this->user = $user;
$this->incident = $incident;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Incident was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\Incident;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\User;
final class IncidentWasUpdatedEvent implements ActionInterface, IncidentEventInterface
{
/**
* The user who updated the event.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The incident that has been updated.
*
* @var \CachetHQ\Cachet\Models\Incident
*/
public $incident;
/**
* Create a new incident has updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return void
*/
public function __construct(User $user, Incident $incident)
{
$this->user = $user;
$this->incident = $incident;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Incident was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,24 +0,0 @@
<?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\IncidentUpdate;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the incident update event interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface IncidentUpdateEventInterface extends EventInterface
{
//
}

View File

@@ -1,75 +0,0 @@
<?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\IncidentUpdate;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\IncidentUpdate;
use CachetHQ\Cachet\Models\User;
/**
* This is the incident update was removed event.
*
* @author James Brooks <james@alt-three.com>
*/
final class IncidentUpdateWasRemovedEvent implements ActionInterface, IncidentUpdateEventInterface
{
/**
* The user who removed the incident update.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The incident update that has been removed.
*
* @var \CachetHQ\Cachet\Models\IncidentUpdate
*/
public $update;
/**
* Create a new incident update was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\IncidentUpdate $update
*
* @return void
*/
public function __construct(User $user, IncidentUpdate $update)
{
$this->user = $user;
$this->update = $update;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Incident Update was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,75 +0,0 @@
<?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\IncidentUpdate;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\IncidentUpdate;
use CachetHQ\Cachet\Models\User;
/**
* This is the incident update was reported event.
*
* @author James Brooks <james@alt-three.com>
*/
final class IncidentUpdateWasReportedEvent implements ActionInterface, IncidentUpdateEventInterface
{
/**
* The user who reported the incident update.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The incident update that has been reported.
*
* @var \CachetHQ\Cachet\Models\IncidentUpdate
*/
public $update;
/**
* Create a new incident update was reported event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\IncidentUpdate $update
*
* @return void
*/
public function __construct(User $user, IncidentUpdate $update)
{
$this->user = $user;
$this->update = $update;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Incident Update was reported.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,74 +0,0 @@
<?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\IncidentUpdate;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\IncidentUpdate;
use CachetHQ\Cachet\Models\User;
/**
* This is the incident update was updated event.
*
* @author James Brooks <james@alt-three.com>
*/
final class IncidentUpdateWasUpdatedEvent implements ActionInterface, IncidentUpdateEventInterface
{
/**
* The user who updated the incident update.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The incident update that has been updated.
*
* @var \CachetHQ\Cachet\Models\IncidentUpdate
*/
public $update;
/**
* Create a new incident update was updated event instance.
*
* @param \CachetHQ\Cachet\Models\IncidentUpdate $update
*
* @return void
*/
public function __construct(User $user, IncidentUpdate $update)
{
$this->user = $user;
$this->update = $update;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Incident Update was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,25 +0,0 @@
<?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\Invite;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the invite event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface InviteEventInterface extends EventInterface
{
//
}

View File

@@ -1,44 +0,0 @@
<?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\Invite;
use CachetHQ\Cachet\Models\Invite;
final class InviteWasClaimedEvent implements InviteEventInterface
{
/**
* The invite that has been claimed.
*
* @var \CachetHQ\Cachet\Models\Invite
*/
public $invite;
/**
* Create a new invite was claimed event instance.
*
* @return void
*/
public function __construct(Invite $invite)
{
$this->invite = $invite;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Invite was claimed.';
}
}

View File

@@ -1,25 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the metric event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface MetricEventInterface extends EventInterface
{
//
}

View File

@@ -1,75 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\MetricPoint;
use CachetHQ\Cachet\Models\User;
/**
* This is the metric point was created event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class MetricPointWasCreatedEvent implements ActionInterface, MetricEventInterface
{
/**
* The user who added the metric point.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The metric point that was added.
*
* @var \CachetHQ\Cachet\Models\MetricPoint
*/
public $metricPoint;
/**
* Create a new metric point was added event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\MetricPoint $metricPoint
*
* @return void
*/
public function __construct(User $user, MetricPoint $metricPoint)
{
$this->user = $user;
$this->metricPoint = $metricPoint;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Metric Point was added.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\MetricPoint;
use CachetHQ\Cachet\Models\User;
final class MetricPointWasRemovedEvent implements ActionInterface, MetricEventInterface
{
/**
* The user who removed the metric point.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The metric point that was removed.
*
* @var \CachetHQ\Cachet\Models\MetricPoint
*/
public $metricPoint;
/**
* Create a new metric point was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\MetricPoint $memtricPoint
*
* @return void
*/
public function __construct(User $user, MetricPoint $metricPoint)
{
$this->user = $user;
$this->metricPoint = $metricPoint;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Metric Point was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\MetricPoint;
use CachetHQ\Cachet\Models\User;
final class MetricPointWasUpdatedEvent implements ActionInterface, MetricEventInterface
{
/**
* The user who updated the metric point.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The metric point that was updated.
*
* @var \CachetHQ\Cachet\Models\MetricPoint
*/
public $metricPoint;
/**
* Create a new metric point was updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\MetricPoint $metricPoint
*
* @return void
*/
public function __construct(User $user, MetricPoint $metricPoint)
{
$this->user = $user;
$this->metricPoint = $metricPoint;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Metric Point was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,75 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Metric;
use CachetHQ\Cachet\Models\User;
/**
* This is the metric was created event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class MetricWasCreatedEvent implements ActionInterface, MetricEventInterface
{
/**
* The user who added the metric.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The metric that was added.
*
* @var \CachetHQ\Cachet\Models\Metric
*/
public $metric;
/**
* Create a new metric was added event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Metric $metric
*
* @return void
*/
public function __construct(User $user, Metric $metric)
{
$this->user = $user;
$this->metric = $metric;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Metric was added.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Metric;
use CachetHQ\Cachet\Models\User;
final class MetricWasRemovedEvent implements ActionInterface, MetricEventInterface
{
/**
* The user who removed the metric.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The metric that was removed.
*
* @var \CachetHQ\Cachet\Models\Metric
*/
public $metric;
/**
* Create a new metric was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Metric $metric
*
* @return void
*/
public function __construct(User $user, Metric $metric)
{
$this->user = $user;
$this->metric = $metric;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Metric was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,70 +0,0 @@
<?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\Metric;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Metric;
use CachetHQ\Cachet\Models\User;
final class MetricWasUpdatedEvent implements ActionInterface, MetricEventInterface
{
/**
* The user who update the metric.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The metric that was updated.
*
* @var \CachetHQ\Cachet\Models\MetricPoint
*/
public $metric;
/**
* Create a new metric was updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Metric $metric
*
* @return void
*/
public function __construct(User $user, Metric $metric)
{
$this->user = $user;
$this->metric = $metric;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Metric was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,24 +0,0 @@
<?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\Schedule;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the schedule event interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface ScheduleEventInterface extends EventInterface
{
//
}

View File

@@ -1,84 +0,0 @@
<?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\Schedule;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Schedule;
use CachetHQ\Cachet\Models\User;
/**
* This is the schedule was created event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class ScheduleWasCreatedEvent implements ActionInterface, ScheduleEventInterface
{
/**
* The user that created the schedule.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The schedule that has been created.
*
* @var \CachetHQ\Cachet\Models\Schedule
*/
public $schedule;
/**
* Whether to notify that the incident was reported.
*
* @var bool
*/
public $notify;
/**
* Create a new schedule was created event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Schedule $schedule
* @param bool notify
*
* @return void
*/
public function __construct(User $user, Schedule $schedule, $notify = false)
{
$this->user = $user;
$this->schedule = $schedule;
$this->notify = $notify;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Schedule was created.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,75 +0,0 @@
<?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\Schedule;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Schedule;
use CachetHQ\Cachet\Models\User;
/**
* This is the schedule was removed event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class ScheduleWasRemovedEvent implements ActionInterface, ScheduleEventInterface
{
/**
* The user that removed the schedule.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The schedule that has been removed.
*
* @var \CachetHQ\Cachet\Models\Schedule
*/
public $schedule;
/**
* Create a new schedule was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Schedule $schedule
*
* @return void
*/
public function __construct(User $user, Schedule $schedule)
{
$this->user = $user;
$this->schedule = $schedule;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Schedule was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,75 +0,0 @@
<?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\Schedule;
use CachetHQ\Cachet\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Schedule;
use CachetHQ\Cachet\Models\User;
/**
* This is the schedule was updated event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class ScheduleWasUpdatedEvent implements ActionInterface, ScheduleEventInterface
{
/**
* The user that created the schedule.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The schedule that has been updated.
*
* @var \CachetHQ\Cachet\Models\Schedule
*/
public $schedule;
/**
* Create a new schedule was updated event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Schedule $schedule
*
* @return void
*/
public function __construct(User $user, Schedule $schedule)
{
$this->user = $user;
$this->schedule = $schedule;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Schedule was updated.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,25 +0,0 @@
<?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\Subscriber;
use CachetHQ\Cachet\Bus\Events\EventInterface;
/**
* This is the subscriber event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface SubscriberEventInterface extends EventInterface
{
//
}

View File

@@ -1,46 +0,0 @@
<?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\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
final class SubscriberHasSubscribedEvent implements SubscriberEventInterface
{
/**
* The subscriber who has subscribed.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* Create a new subscriber has subscribed event instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/
public function __construct(Subscriber $subscriber)
{
$this->subscriber = $subscriber;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Subscriber has subscribed.';
}
}

View File

@@ -1,46 +0,0 @@
<?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\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
final class SubscriberHasUnsubscribedEvent implements SubscriberEventInterface
{
/**
* The subscriber who has unsubscribed.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* Create a new subscriber has unsubscribed event instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/
public function __construct(Subscriber $subscriber)
{
$this->subscriber = $subscriber;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Subscriber has unsubscribed.';
}
}

View File

@@ -1,51 +0,0 @@
<?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\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
/**
* This is the subscriber has updated subscriptions event.
*
* @author James Brooks <james@alt-three.com>
*/
final class SubscriberHasUpdatedSubscriptionsEvent implements SubscriberEventInterface
{
/**
* The subscriber.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* Create a new subscriber has updated subscriptions event instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/
public function __construct(Subscriber $subscriber)
{
$this->subscriber = $subscriber;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Subscriber has updated subscription.';
}
}

View File

@@ -1,46 +0,0 @@
<?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\Subscriber;
use CachetHQ\Cachet\Models\Subscriber;
final class SubscriberHasVerifiedEvent implements SubscriberEventInterface
{
/**
* The subscriber who has verified.
*
* @var \CachetHQ\Cachet\Models\Subscriber
*/
public $subscriber;
/**
* Create a new subscriber has subscribed event instance.
*
* @param \CachetHQ\Cachet\Models\Subscriber $subscriber
*
* @return void
*/
public function __construct(Subscriber $subscriber)
{
$this->subscriber = $subscriber;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'Subscriber has verified.';
}
}

View File

@@ -1,30 +0,0 @@
<?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
{
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'System checked for updated.';
}
}

View File

@@ -1,24 +0,0 @@
<?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
{
//
}

View File

@@ -1,30 +0,0 @@
<?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
{
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'System was installed.';
}
}

View File

@@ -1,30 +0,0 @@
<?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
{
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'System was reset.';
}
}

View File

@@ -1,30 +0,0 @@
<?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
{
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'System was updated.';
}
}

View File

@@ -1,75 +0,0 @@
<?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\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\Invite;
use CachetHQ\Cachet\Models\User;
/**
* This is the user accepted invite event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserAcceptedInviteEvent implements ActionInterface, UserEventInterface
{
/**
* The user that accepted the invite.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* The invite that the user accepted.
*
* @var \CachetHQ\Cachet\Models\Invite
*/
public $invite;
/**
* Create a new user accepted invite event class.
*
* @param \CachetHQ\Cachet\Models\User $user
* @param \CachetHQ\Cachet\Models\Invite $invite
*
* @return void
*/
public function __construct(User $user, Invite $invite)
{
$this->user = $user;
$this->invite = $invite;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User accepted invite.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
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 ActionInterface, 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;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User disabled two-factor authentication.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
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 ActionInterface, 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;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User enabled two-factor authentication.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,25 +0,0 @@
<?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\Bus\Events\EventInterface;
/**
* This is the user event interface.
*
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
interface UserEventInterface extends EventInterface
{
//
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
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 ActionInterface, 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;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User failed two-factor authentication.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\User;
/**
* This is the user logged in event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserLoggedInEvent implements ActionInterface, 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;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User logged in.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\User;
/**
* This is the user logged out event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserLoggedOutEvent implements ActionInterface, 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;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User logged out.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
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 ActionInterface, 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;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User passed two-factor authentication.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\User;
/**
* This is the user regenerated api token event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserRegeneratedApiTokenEvent implements ActionInterface, UserEventInterface
{
/**
* The user that regenerated their api token.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* Create a new user regenerated api token event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User regenerated api token.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,65 +0,0 @@
<?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\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\User;
/**
* This is the user was created event class.
*
* @author James Brooks <james@alt-three.com>
*/
final class UserWasCreatedEvent implements ActionInterface, UserEventInterface
{
/**
* The user that has been added.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* Create a new user was added event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User was created.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

View File

@@ -1,53 +0,0 @@
<?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\Invite;
/**
* This is the user was invited event class.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author Graham Campbell <graham@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
final class UserWasInvitedEvent implements UserEventInterface
{
/**
* The invite that has been created.
*
* @var \CachetHQ\Cachet\Models\Invite
*/
public $invite;
/**
* Create a new user was invite event instance.
*
* @param \CachetHQ\Cachet\Models\Invite $invite
*
* @return void
*/
public function __construct(Invite $invite)
{
$this->invite = $invite;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User was invited.';
}
}

View File

@@ -1,60 +0,0 @@
<?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\Bus\Events\ActionInterface;
use CachetHQ\Cachet\Models\User;
final class UserWasRemovedEvent implements ActionInterface, UserEventInterface
{
/**
* The user that has been removed.
*
* @var \CachetHQ\Cachet\Models\User
*/
public $user;
/**
* Create a new user was removed event instance.
*
* @param \CachetHQ\Cachet\Models\User $user
*
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
/**
* Get the event description.
*
* @return string
*/
public function __toString()
{
return 'User was removed.';
}
/**
* Get the event action.
*
* @return array
*/
public function getAction()
{
return [
'user' => $this->user,
'description' => (string) $this,
];
}
}

Some files were not shown because too many files have changed in this diff Show More