Skip to content

Commit 15d04bd

Browse files
committed
feat: isRunningBundled
1 parent 6103ed5 commit 15d04bd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/App.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Native\Laravel;
44

55
use Native\Laravel\Client\Client;
6+
use Phar;
67

78
class App
89
{
@@ -57,4 +58,9 @@ public function clearRecentDocuments(): void
5758
{
5859
$this->client->delete('app/recent-documents');
5960
}
61+
62+
public function isRunningBundled(): bool
63+
{
64+
return Phar::running() !== '';
65+
}
6066
}

src/Facades/App.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* @method static void addRecentDocument(string $path)
1414
* @method static array recentDocuments()
1515
* @method static void clearRecentDocuments()
16+
* @method static bool isRunningBundled()
1617
*/
1718
class App extends Facade
1819
{

0 commit comments

Comments
 (0)