diff options
| author | horus | 2022-11-17 20:25:57 +0100 |
|---|---|---|
| committer | horus | 2022-11-17 20:25:57 +0100 |
| commit | 74195cb1ef741ec1037156c339109e6a6ba6a74a (patch) | |
| tree | bda69182c919e0c07cd368ec544d52129b5d7b5b /app/Console/Commands/CheckImage.php | |
| parent | f4d0db3c67127919f431459aa1e430cab4e6d380 (diff) | |
| download | senpai-74195cb1ef741ec1037156c339109e6a6ba6a74a.tar.gz | |
Capture output from scheduler tasks
Diffstat (limited to 'app/Console/Commands/CheckImage.php')
| -rw-r--r-- | app/Console/Commands/CheckImage.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Console/Commands/CheckImage.php b/app/Console/Commands/CheckImage.php index fcd6d4a..770db83 100644 --- a/app/Console/Commands/CheckImage.php +++ b/app/Console/Commands/CheckImage.php @@ -30,7 +30,15 @@ class CheckImage extends Command { $background = new Background(); echo "checkImage()\n"; + + ob_start(); + $background->checkImage(); + + $msg = ob_get_contents(); + ob_end_clean(); + $this->info( $msg ); + return Command::SUCCESS; } } |
