4 use PhpMyAdmin\Command\AdvisoryRulesCommand
;
5 use PhpMyAdmin\Command\CacheWarmupCommand
;
6 use Symfony\Component\Console\Application
;
8 if (! defined('ROOT_PATH')) {
9 define('ROOT_PATH', dirname(__DIR__
) . DIRECTORY_SEPARATOR
);
12 define('PHPMYADMIN', true);
13 require_once ROOT_PATH
. 'libraries/vendor_config.php';
14 require_once AUTOLOAD_FILE
;
16 if (! class_exists(Application
::class)) {
17 echo 'Be sure to have dev-dependencies installed.' . PHP_EOL
;
18 echo 'Command aborted.' . PHP_EOL
;
22 $application = new Application('phpMyAdmin Console Tool');
24 $application->add(new AdvisoryRulesCommand());
25 $application->add(new CacheWarmupCommand());