| 1 | <?php |
||
| 7 | class CleanLogCommand extends Command |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The console command name. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $signature = 'activitylog:clean'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ActivityManager |
||
| 18 | */ |
||
| 19 | protected $activity; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Construct |
||
| 23 | * |
||
| 24 | * @param ActivityManager $activity |
||
| 25 | */ |
||
| 26 | public function __construct(ActivityManager $activity) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The console command description. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $description = 'Clean up old records from the activity log.'; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Handle Command |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function handle() |
||
| 53 | } |