phpmyadmin/scripts/console
Maurício Meneghini Fauth 27d631e164 Use Console command for Twig cache warm up
Extracts the Twig cache generation to a console command.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-02-20 23:15:40 -03:00

22 lines
543 B
PHP
Executable File

#!/usr/bin/env php
<?php
use PhpMyAdmin\Command\AdvisoryRulesCommand;
use PhpMyAdmin\Command\CacheWarmupCommand;
use Symfony\Component\Console\Application;
if (! defined('ROOT_PATH')) {
define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
}
define('PHPMYADMIN', true);
require_once ROOT_PATH . 'libraries/vendor_config.php';
require_once AUTOLOAD_FILE;
$application = new Application('phpMyAdmin Console Tool');
$application->add(new AdvisoryRulesCommand());
$application->add(new CacheWarmupCommand());
$application->run();