1 | <?php |
||
12 | class SchemaUpdate extends Command |
||
13 | { |
||
14 | const CONNECTION_NAME = 'schema-update'; |
||
15 | |||
16 | /** |
||
17 | * The name and signature of the console command. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $signature = 'db:schema-update {--force : Force execute queries}'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Updates database schema with any migration changes'; |
||
29 | |||
30 | /** |
||
31 | * @var Application |
||
32 | */ |
||
33 | protected $app; |
||
34 | |||
35 | /** |
||
36 | * @var Console |
||
37 | */ |
||
38 | protected $artisan; |
||
39 | |||
40 | /** |
||
41 | * Create a new command instance. |
||
42 | * |
||
43 | * @return void |
||
|
|||
44 | */ |
||
45 | public function __construct(Application $app, Console $artisan) |
||
52 | 4 | ||
53 | /** |
||
54 | * Execute the console command. |
||
55 | * |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function handle() |
||
95 | |||
96 | protected function createInMemoryDatabase() |
||
121 | |||
122 | /** |
||
123 | * @param string $connection |
||
124 | */ |
||
125 | protected function getSchemaManager($connection = null) |
||
135 | |||
136 | /** |
||
137 | * @return \Doctrine\DBAL\Platforms\AbstractPlatform |
||
138 | */ |
||
139 | protected function getDatabasePlatform($connection = null) |
||
149 | } |
||
150 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.