diff --git a/flarum/flarum b/flarum/flarum index fc3ecca..7bfebd6 100644 --- a/flarum/flarum +++ b/flarum/flarum @@ -1,6 +1,5 @@ #!/usr/bin/env php register(new \Flarum\Install\InstallServiceProvider($app)); - $console->add(new InstallCommand($app)); + $app->register('Flarum\Install\InstallServiceProvider'); + $console->add($app->make('Flarum\Install\Console\InstallCommand')); } -$console->add(new UpgradeCommand($app)); -$console->add(new GenerateExtensionCommand($app)); +$console->add($app->make('Flarum\Console\UpgradeCommand')); +$console->add($app->make('Flarum\Console\GenerateExtensionCommand')); +$console->add($app->make('Flarum\Console\GenerateMigrationCommand')); exit($console->run());