|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Transmissor\Console; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Console\Scheduling\Schedule; |
|
6
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* Class Kernel. |
|
10
|
|
|
* |
|
11
|
|
|
* @package Console |
|
12
|
|
|
*/ |
|
13
|
|
|
class Kernel extends ConsoleKernel |
|
14
|
|
|
{ |
|
15
|
|
|
/** |
|
16
|
|
|
* The Artisan commands provided by your application. |
|
17
|
|
|
* |
|
18
|
|
|
* @var array |
|
19
|
|
|
*/ |
|
20
|
|
|
protected $commands = [ |
|
21
|
|
|
// Commands\PhotoFinder\ChangeUserPassword::class, |
|
22
|
|
|
// Commands\PhotoFinder\User::class, |
|
23
|
|
|
// Commands\PhotoFinder\CreateRoles::class, |
|
24
|
|
|
// Commands\PhotoFinder\DeleteDetachedPhotosOlderThanWeek::class, |
|
25
|
|
|
// Commands\PhotoFinder\DeleteUnusedObjectsFromPhotoStorage::class, |
|
26
|
|
|
// Commands\PhotoFinder\GeneratePhotosMetadata::class, |
|
27
|
|
|
// Commands\PhotoFinder\GenerateRestApiDocumentation::class, |
|
28
|
|
|
// Commands\PhotoFinder\SendWeeklySubscriptionMails::class, |
|
29
|
|
|
// Commands\PhotoFinder\TestScheduler::class, |
|
30
|
|
|
|
|
31
|
|
|
// Commands\Photoacompanhante::class, |
|
32
|
|
|
|
|
33
|
|
|
|
|
34
|
|
|
// \Laravel\Tinker\Console\TinkerCommand::class, |
|
35
|
|
|
|
|
36
|
|
|
// /** |
|
37
|
|
|
// * Me |
|
38
|
|
|
// */ |
|
39
|
|
|
// Commands\Explorer\InstagramGetAll::class, |
|
40
|
|
|
// Commands\Import\Data::class, |
|
41
|
|
|
// Commands\Import\Social::class, |
|
42
|
|
|
]; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* Define the application's command schedule. |
|
46
|
|
|
* |
|
47
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
48
|
|
|
* @return void |
|
49
|
|
|
*/ |
|
50
|
|
|
protected function schedule(Schedule $schedule) |
|
51
|
|
|
{ |
|
52
|
|
|
// $schedule->command('horizon:snapshot')->everyFiveMinutes(); |
|
53
|
|
|
|
|
54
|
|
|
|
|
55
|
|
|
// $schedule->command(Commands\PhotoFinder\TestScheduler::class) |
|
56
|
|
|
// ->hourly(); |
|
57
|
|
|
|
|
58
|
|
|
// $schedule->command(Commands\PhotoFinder\DeleteDetachedPhotosOlderThanWeek::class) |
|
59
|
|
|
// ->dailyAt('00:00') |
|
60
|
|
|
// ->onOneServer(); |
|
61
|
|
|
|
|
62
|
|
|
// $schedule->command(Commands\PhotoFinder\DeleteUnusedObjectsFromPhotoStorage::class) |
|
63
|
|
|
// ->dailyAt('00:10') |
|
64
|
|
|
// ->onOneServer(); |
|
65
|
|
|
|
|
66
|
|
|
// $schedule->command(Commands\PhotoFinder\SendWeeklySubscriptionMails::class) |
|
67
|
|
|
// ->weekly() |
|
68
|
|
|
// ->sundays() |
|
69
|
|
|
// ->at('06:00') |
|
70
|
|
|
// ->onOneServer(); |
|
71
|
|
|
|
|
72
|
|
|
|
|
73
|
|
|
// $schedule->command('import:photoacompanhante') |
|
74
|
|
|
// ->hourly(); |
|
75
|
|
|
|
|
76
|
|
|
|
|
77
|
|
|
|
|
78
|
|
|
// $schedule->command(Commands\Tools\PhotoApp\TestScheduler::class) |
|
79
|
|
|
// ->hourly(); |
|
80
|
|
|
|
|
81
|
|
|
// $schedule->command(Commands\Tools\PhotoApp\DeleteDetachedPhotosOlderThanWeek::class) |
|
82
|
|
|
// ->dailyAt('00:00') |
|
83
|
|
|
// ->onOneServer(); |
|
84
|
|
|
|
|
85
|
|
|
// $schedule->command(Commands\Tools\PhotoApp\DeleteUnusedObjectsFromPhotoStorage::class) |
|
86
|
|
|
// ->dailyAt('00:10') |
|
87
|
|
|
// ->onOneServer(); |
|
88
|
|
|
|
|
89
|
|
|
// $schedule->command(Commands\Tools\PhotoApp\SendWeeklySubscriptionMails::class) |
|
90
|
|
|
// ->weekly() |
|
91
|
|
|
// ->sundays() |
|
92
|
|
|
// ->at('06:00') |
|
93
|
|
|
// ->onOneServer(); |
|
94
|
|
|
|
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* Register the Closure based commands for the application. |
|
99
|
|
|
* |
|
100
|
|
|
* @return void |
|
101
|
|
|
*/ |
|
102
|
|
|
protected function commands() |
|
103
|
|
|
{ |
|
104
|
|
|
// include base_path('routes/console.php'); |
|
105
|
|
|
} |
|
106
|
|
|
} |
|
107
|
|
|
|