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/SetWatchingCalender.php | |
| parent | f4d0db3c67127919f431459aa1e430cab4e6d380 (diff) | |
| download | senpai-74195cb1ef741ec1037156c339109e6a6ba6a74a.tar.gz | |
Capture output from scheduler tasks
Diffstat (limited to 'app/Console/Commands/SetWatchingCalender.php')
| -rw-r--r-- | app/Console/Commands/SetWatchingCalender.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Console/Commands/SetWatchingCalender.php b/app/Console/Commands/SetWatchingCalender.php index 9e4bfa7..160866b 100644 --- a/app/Console/Commands/SetWatchingCalender.php +++ b/app/Console/Commands/SetWatchingCalender.php @@ -28,6 +28,8 @@ class SetWatchingCalender extends Command */ public function handle() { + ob_start(); + $helper = new Helper(); #$helper->createUser( 'll-' ); echo "setIsWatchingForAll(): \n"; @@ -35,6 +37,10 @@ class SetWatchingCalender extends Command echo "\nsetCalendarForAll(): \n"; $helper->setCalendarForAll(); + $msg = ob_get_contents(); + ob_end_clean(); + $this->info( $msg ); + return Command::SUCCESS; } |
