#!/usr/bin/env php getName() . ' ' . $version->getNumber()); $cli->command(new TranslationDumper()); $cli->command(new InstallAll()); $cli->command(new ComposerInstall()); $cli->command(new RegenerateSqliteDb()); $cli->command(new APIRoutesDumper()); $cli->command(new RoutesDumper()); $cli->command(new Behat()); $cli->command(new Uninstaller()); $cli->command(new JsFixtures()); $cli->command(new IniReset()); $cli->command(new SetupTestsDbs()); $cli->command(new \module_console_systemTemplateGenerator('system:generate-templates')); $cli['console']->addCommands([ // DBAL Commands new RunSqlCommand(), new ImportCommand(), // ORM Commands new MetadataCommand(), new ResultCommand(), new QueryCommand(), new CreateCommand(), new UpdateCommand(), new DropCommand(), new EnsureProductionSettingsCommand(), new ConvertDoctrine1SchemaCommand(), new GenerateRepositoriesCommand(), new GenerateEntitiesCommand(), new GenerateProxiesCommand(), new ConvertMappingCommand(), new RunDqlCommand(), new ValidateSchemaCommand(), // Migrations Commands new DiffCommand(), new ExecuteCommand(), new GenerateCommand(), new MigrateCommand(), new StatusCommand(), new VersionCommand(), ]); if ($cli['configuration.store']->isSetup()) { $cli->loadPlugins(); $helpers = [ 'db' => new ConnectionHelper($cli['orm.em']->getConnection()), 'em' => new EntityManagerHelper($cli['orm.em']) ]; $helperSet = $cli['console']->getHelperSet(); foreach ($helpers as $name => $helper) { $helperSet->set($helper, $name); } } $cli->run();