We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9438fc0 commit c53faeaCopy full SHA for c53faea
build/auctionx-worker
27 Bytes
src/Worker/Helper/ConfigurationHelper.php
@@ -24,6 +24,10 @@ public static function writeConfiguration(
24
25
$fileName = self::getFileName();
26
27
+ if (!is_dir(self::getConfigFolder())) {
28
+ mkdir(self::getConfigFolder());
29
+ }
30
+
31
$handle = fopen($fileName, 'w+');
32
33
if ($handle) {
@@ -77,4 +81,9 @@ public static function getFileName(): string
77
81
return getenv('HOME') ? getenv('HOME') . '/.auctionx/worker' : './.auctionx/worker';
78
82
}
79
83
84
+ public static function getConfigFolder(): string
85
+ {
86
+ return getenv('HOME') ? getenv('HOME') . '/.auctionx' : './.auctionx';
87
88
80
89
0 commit comments