Translated using Weblate (French)
[phpmyadmin.git] / scripts / console
blobcfdd9b80e48b2c311d19a83cd452ef7e4ff74215
1 #!/usr/bin/env php
2 <?php
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;
19 exit(1);
22 $application = new Application('phpMyAdmin Console Tool');
24 $application->add(new AdvisoryRulesCommand());
25 $application->add(new CacheWarmupCommand());
27 $application->run();