-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#36 retrieve weather based on location; updated namespace; removed co…
…mmand for status update
- Loading branch information
almostengr
committed
Oct 28, 2024
1 parent
11896b4
commit a3b81aa
Showing
24 changed files
with
195 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
<?php | ||
|
||
namespace App\Commands; | ||
namespace App; | ||
|
||
use Exception; | ||
|
||
final class DaemonStopCommand extends BaseCommand implements ShowPulseCommandInterface | ||
{ | ||
public function execute() | ||
{ | ||
unlink(self::DAEMON_FILE); | ||
try { | ||
unlink(self::DAEMON_FILE); | ||
$this->completed(); | ||
} catch (Exception $exception) { | ||
$this->logError($exception->getMessage()); | ||
} | ||
} | ||
} | ||
|
||
$command = new DaemonStopCommand(); | ||
$command->execute(); | ||
$command->completed(); |
Oops, something went wrong.