| 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 | protected $description = 'Clean up old records from the activity log.'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Construct |
||
| 30 | * |
||
| 31 | * @param ActivityManager $activity |
||
| 32 | */ |
||
| 33 | 1 | public function __construct(ActivityManager $activity) |
|
| 34 | { |
||
| 35 | 1 | parent::__construct(); |
|
| 36 | 1 | $this->activity = $activity; |
|
| 37 | 1 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Handle Command |
||
| 41 | * |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | 1 | public function fire() |
|
| 54 | } |
||
| 55 |