Skip to content

Commit a18787c

Browse files
author
Holger Lösken
committed
Remove HasWrongPermissions event
1 parent 76fbefd commit a18787c

File tree

5 files changed

+20
-172
lines changed

5 files changed

+20
-172
lines changed

src/Events/HasWrongPermissions.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/Listeners/SendUpdateAvailableNotification.php

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/Listeners/SendUpdateSucceededNotification.php

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/Notifications/Notifiable.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Codedge\Updater\Notifications;
4+
5+
use Illuminate\Notifications\Notifiable as NotifiableTrait;
6+
7+
final class Notifiable
8+
{
9+
use NotifiableTrait;
10+
11+
public function routeNotificationForMail()
12+
{
13+
return config('backup.notifications.mail.to');
14+
}
15+
16+
public function getKey()
17+
{
18+
return 1;
19+
}
20+
}

src/helpers.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
declare(strict_types=1);
44

5-
use Codedge\Updater\Events\HasWrongPermissions;
6-
use Illuminate\Support\Facades\File;
75
use Illuminate\Support\Str;
86
use Symfony\Component\Finder\Finder;
97

@@ -36,7 +34,6 @@ function checkPermissions(Finder $directory): bool
3634

3735
collect($directory->getIterator())->each(function (SplFileInfo $file) use (&$checkPermission) {
3836
if ($file->isWritable() === false) {
39-
event(new HasWrongPermissions($file));
4037
$checkPermission = false;
4138
}
4239
});

0 commit comments

Comments
 (0)