#!/usr/bin/env php set('environment', $cfg['environment']); $dbi = new DatabaseInterface(new DbiDummy()); $tplDir = ROOT_PATH . 'templates'; $tmpDir = ROOT_PATH . 'twig-templates'; $loader = new FilesystemLoader($tplDir); $twig = new Environment($loader, [ 'auto_reload' => true, 'cache' => $tmpDir, ]); $twig->setExtensions([ new CoreExtension(), new I18nExtension(), new MessageExtension(), new PluginsExtension(), new RelationExtension(), new SanitizeExtension(), new TableExtension(), new TrackerExtension(), new TransformationsExtension(), new UrlExtension(), new UtilExtension(), ]); $application = new Application('phpMyAdmin Console Tool'); $application->add(new CacheWarmupCommand()); $application->add(new LintCommand($twig)); $application->add(new SetVersionCommand()); $application->run();