Skip to content

Commit 5dbad85

Browse files
committed
Deprecate OsHelper in favor of jolicode/php-os-helper
1 parent 4d02d96 commit 5dbad85

12 files changed

+19
-71
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes between versions
22

3+
## Not yet released
4+
5+
* Deprecated Joli\JoliNotif\Util\OsHelper in favor of jolicode/php-os-helper package
6+
37
## 2.5.2 (2023-05-24)
48

59
* Added PHAR to GitHub releases

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"require": {
2424
"php": ">=8.0",
25+
"jolicode/php-os-helper": "^0.1.0",
2526
"symfony/process": "^5.4 || ^6.0"
2627
},
2728
"require-dev": {

src/Exception/Exception.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@
1111

1212
namespace Joli\JoliNotif\Exception;
1313

14-
interface Exception
15-
{
16-
}
14+
interface Exception {}

src/Notification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Joli\JoliNotif;
1313

14-
use Joli\JoliNotif\Util\OsHelper;
1514
use Joli\JoliNotif\Util\PharExtractor;
15+
use JoliCode\PhpOsHelper\OsHelper;
1616

1717
class Notification
1818
{

src/Notifier/AppleScriptNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Joli\JoliNotif\Notifier;
1313

1414
use Joli\JoliNotif\Notification;
15-
use Joli\JoliNotif\Util\OsHelper;
15+
use JoliCode\PhpOsHelper\OsHelper;
1616

1717
/**
1818
* This notifier can be used on Mac OS X 10.9+.

src/Notifier/CliBasedNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use Joli\JoliNotif\Exception\InvalidNotificationException;
1515
use Joli\JoliNotif\Notification;
1616
use Joli\JoliNotif\Notifier;
17-
use Joli\JoliNotif\Util\OsHelper;
1817
use Joli\JoliNotif\Util\PharExtractor;
18+
use JoliCode\PhpOsHelper\OsHelper;
1919
use Symfony\Component\Process\Process;
2020

2121
abstract class CliBasedNotifier implements Notifier

src/Notifier/NotifuNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Joli\JoliNotif\Notifier;
1313

1414
use Joli\JoliNotif\Notification;
15-
use Joli\JoliNotif\Util\OsHelper;
15+
use JoliCode\PhpOsHelper\OsHelper;
1616

1717
/**
1818
* This notifier can be used on Windows Seven and provides its own binaries if

src/Notifier/SnoreToastNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Joli\JoliNotif\Notifier;
1313

1414
use Joli\JoliNotif\Notification;
15-
use Joli\JoliNotif\Util\OsHelper;
15+
use JoliCode\PhpOsHelper\OsHelper;
1616
use Symfony\Component\Process\Process;
1717

1818
/**

src/Notifier/TerminalNotifierNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Joli\JoliNotif\Notifier;
1313

1414
use Joli\JoliNotif\Notification;
15-
use Joli\JoliNotif\Util\OsHelper;
15+
use JoliCode\PhpOsHelper\OsHelper;
1616

1717
/**
1818
* This notifier can be used on Mac OS X 10.8, or higher, using the

src/Notifier/ToasterNotifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Joli\JoliNotif\Notifier;
1313

1414
use Joli\JoliNotif\Notification;
15-
use Joli\JoliNotif\Util\OsHelper;
15+
use JoliCode\PhpOsHelper\OsHelper;
1616

1717
/**
1818
* This notifier can be used on Windows Eight and higher and provides its own

0 commit comments

Comments
 (0)