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