1 | <?php |
||
7 | class InstallCommand extends AbstractCommand |
||
8 | { |
||
9 | /** |
||
10 | * Interface that gives us access to the database. |
||
11 | * |
||
12 | * @var DatabaseStorageInterface |
||
13 | */ |
||
14 | protected $database; |
||
15 | |||
16 | /** |
||
17 | * Table in DB to store migrations that have been already run. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $table; |
||
22 | |||
23 | protected static $defaultName = 'install'; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * |
||
28 | * @param string $table |
||
29 | * @param DatabaseStorageInterface $database |
||
30 | * @param string|null $name |
||
31 | */ |
||
32 | public function __construct($table, DatabaseStorageInterface $database, $name = null) |
||
39 | |||
40 | /** |
||
41 | * Configures the current command. |
||
42 | */ |
||
43 | protected function configure() |
||
47 | |||
48 | /** |
||
49 | * Execute the console command. |
||
50 | * |
||
51 | * @return null|int |
||
52 | */ |
||
53 | protected function fire() |
||
63 | } |
||
64 |