#!/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')); /** @var ConfigurationTester $configurationTester */ $configurationTester = $app['phraseanet.configuration-tester']; if($configurationTester->isMigrable() || $configurationTester->isUpgradable() || $configurationTester->isInstalled()) { $app->command(new \module_console_systemUpgrade('system:upgrade')); } if ($configurationTester->isInstalled()) { $app->command(new UpgradeDBDatas('system:upgrade-datas')); $app->command(new ConfigurationEditor('system:config')); } $app->command(new AddPlugin()); $app->command(new DownloadPlugin()); $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['phraseanet.structure-template'])); $app->command(new CrossDomainGenerator()); $app->command(new FixAutoincrements('system:fix-autoincrements')); $app->command(new FixLogCollId()); $app->command(new SystemClearCacheCommand()); $app->command(new SystemClearSessionCacheCommand()); $app['phraseanet.setup_mode'] = true; $app->run();