1 | <?php |
||
7 | class Remove extends Base |
||
8 | { |
||
9 | /** |
||
10 | * The console command name. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name = 'firewall:remove'; |
||
15 | |||
16 | /** |
||
17 | * The console command description. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $description = 'Remove an IP address from white or black list.'; |
||
22 | |||
23 | /** |
||
24 | * Remove an ip from a list. |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | 1 | public function fire() |
|
29 | { |
||
30 | 1 | $this->fireCommand('remove', [$this->argument('ip')]); |
|
31 | 1 | } |
|
32 | |||
33 | /** |
||
34 | * Get the console command arguments. |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | 24 | protected function getArguments() |
|
44 | } |
||
45 |