#!/usr/bin/env php 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 PluginsReset()); $app->command(new CheckEnvironment('check:system')); $app->command(new Install('system:install')); exit(is_int($app->run()) ? : 1);