1 | <?php namespace Arcanedev\GeoIP\Console; |
||
12 | class UpdateCommand extends Command |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Properties |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * The console command name. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $name = 'geoip:update'; |
||
25 | |||
26 | /** |
||
27 | * The console command description. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $description = 'Update GeoIP database files to the latest version'; |
||
32 | |||
33 | /** @var \Arcanedev\GeoIP\Contracts\GeoIPDriver */ |
||
34 | protected $driver; |
||
35 | |||
36 | /* ----------------------------------------------------------------- |
||
37 | | Constructor |
||
38 | | ----------------------------------------------------------------- |
||
39 | */ |
||
40 | |||
41 | /** |
||
42 | * UpdateCommand constructor. |
||
43 | * |
||
44 | * @param \Arcanedev\GeoIP\Contracts\GeoIPDriver $driver |
||
45 | */ |
||
46 | public function __construct(GeoIPDriver $driver) |
||
52 | |||
53 | /* ----------------------------------------------------------------- |
||
54 | | Main Methods |
||
55 | | ----------------------------------------------------------------- |
||
56 | */ |
||
57 | |||
58 | /** |
||
59 | * Execute the console command. |
||
60 | */ |
||
61 | public function handle() |
||
70 | } |
||
71 |