| @@ 16-57 (lines=42) @@ | ||
| 13 | * @author Ryan Thompson <[email protected]> |
|
| 14 | * @package Anomaly\Streams\Platform\Installer\Console\Command |
|
| 15 | */ |
|
| 16 | class LoadApplicationInstallers implements SelfHandling |
|
| 17 | { |
|
| 18 | ||
| 19 | /** |
|
| 20 | * The installer collection. |
|
| 21 | * |
|
| 22 | * @var InstallerCollection |
|
| 23 | */ |
|
| 24 | protected $installers; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Create a new LoadApplicationInstallers instance. |
|
| 28 | * |
|
| 29 | * @param InstallerCollection $installers |
|
| 30 | */ |
|
| 31 | public function __construct(InstallerCollection $installers) |
|
| 32 | { |
|
| 33 | $this->installers = $installers; |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * Handle the command. |
|
| 38 | */ |
|
| 39 | public function handle() |
|
| 40 | { |
|
| 41 | $this->installers->add( |
|
| 42 | new Installer( |
|
| 43 | 'streams::installer.running_application_migrations', |
|
| 44 | function (Kernel $console) { |
|
| 45 | $console->call( |
|
| 46 | 'migrate', |
|
| 47 | [ |
|
| 48 | '--force' => true, |
|
| 49 | '--no-addons' => true, |
|
| 50 | '--path' => 'vendor/anomaly/streams-platform/migrations/application' |
|
| 51 | ] |
|
| 52 | ); |
|
| 53 | } |
|
| 54 | ) |
|
| 55 | ); |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||
| @@ 16-57 (lines=42) @@ | ||
| 13 | * @author Ryan Thompson <[email protected]> |
|
| 14 | * @package Anomaly\Streams\Platform\Installer\Console\Command |
|
| 15 | */ |
|
| 16 | class LoadCoreInstallers implements SelfHandling |
|
| 17 | { |
|
| 18 | ||
| 19 | /** |
|
| 20 | * The installer collection. |
|
| 21 | * |
|
| 22 | * @var InstallerCollection |
|
| 23 | */ |
|
| 24 | protected $installers; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Create a new LoadCoreInstallers instance. |
|
| 28 | * |
|
| 29 | * @param InstallerCollection $installers |
|
| 30 | */ |
|
| 31 | public function __construct(InstallerCollection $installers) |
|
| 32 | { |
|
| 33 | $this->installers = $installers; |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * Handle the command. |
|
| 38 | */ |
|
| 39 | public function handle() |
|
| 40 | { |
|
| 41 | $this->installers->add( |
|
| 42 | new Installer( |
|
| 43 | 'streams::installer.running_core_migrations', |
|
| 44 | function (Kernel $console) { |
|
| 45 | $console->call( |
|
| 46 | 'migrate', |
|
| 47 | [ |
|
| 48 | '--force' => true, |
|
| 49 | '--no-addons' => true, |
|
| 50 | '--path' => 'vendor/anomaly/streams-platform/migrations/core' |
|
| 51 | ] |
|
| 52 | ); |
|
| 53 | } |
|
| 54 | ) |
|
| 55 | ); |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||