#!/usr/bin/env php getName() . ' ' . $version->getNumber()); $app->register(new DoctrineMigrationServiceProvider()); $app->command(new \module_console_aboutAuthors('about:authors')); $app->command(new \module_console_aboutLicense('about:license')); if( $app['phraseanet.configuration-tester']->isMigrable() || $app['phraseanet.configuration-tester']->isUpgradable() || $app['phraseanet.configuration-tester']->isInstalled() ) { $app->command(new \module_console_systemUpgrade('system:upgrade')); } if ($app['phraseanet.configuration-tester']->isInstalled()) { $app->command(new UpgradeDBDatas('system:upgrade-datas')); } $app->command(new AddPlugin()); $app->command(new ListPlugin()); $app->command(new RemovePlugin()); $app->command(new PluginsReset()); $app->command(new EnablePlugin()); $app->command(new DisablePlugin()); $app->command(new CheckEnvironment('check:system')); $app->command(new Install('system:install')); $app->command(new CrossDomainGenerator()); $app['phraseanet.setup_mode'] = true; exit(is_int($app->run()) ? : 1);